Hello. I have an obscure question for y'all. Consider an inner class:
Now in a different inner class I extend the first one. Does anyone know how to test if <i is an inner class of o> in "aMethod", below?
Code:
class Outer1 {
class Inner1 {
}
}
Code:
class Outer2 {
Inner1 i;
class Inner2 extends Outer1.Inner1{
Inner2(Outer1 o) {
o.super();
}
}
public void aMethod(Outer1 o) {
if ([I][B]<i is an inner class of o>[/B][/I]) {
....
}
}
}
Comment