G
Gianni Galore
Assume I have a method similar to
public Set <AAA> myMethod ( ...???..., Set <BBB> inparm2) {
...
}
What do I have to fill in "???" to be able to pass various different objects.
In other words afterwards calls like the following should be valid:
CCCType c = new CCCType();
DDDType d = new DDDType();
.....
.... = myMethod(c, ....);
or
.... = myMethod(d, ...);
Is there something like:
public Set <AAA> myMethod ( Object<> inparm1, Set <BBB> inparm2) {
...
}
Gianni
public Set <AAA> myMethod ( ...???..., Set <BBB> inparm2) {
...
}
What do I have to fill in "???" to be able to pass various different objects.
In other words afterwards calls like the following should be valid:
CCCType c = new CCCType();
DDDType d = new DDDType();
.....
.... = myMethod(c, ....);
or
.... = myMethod(d, ...);
Is there something like:
public Set <AAA> myMethod ( Object<> inparm1, Set <BBB> inparm2) {
...
}
Gianni