posted 18 years ago
Hi,
my answer is:
you could call base.methods() on an obj of type Object.
This wouldn't work, as the Object class does not know about base.methods.
E.G.:
class Base implements I1 {
public void methodA(){}
}
now you want base to be obj, which in turn references to sub.
Doesn't work.
Cast it:
--> base = (Base[]) obj;
Ciao,<br /> Tommaso<br /> <br />~*~*~*~<br />There are 10 types of people, those who understand binary and those who don't.