class A {
int test() { return 1; }
class B {
int test() {return 1; } // I added this line.
}
}
public class C extends A.B {
C(A a) {
a.super();
System.out.println(test());
}
}
It gives error because of extending the C class with A.B.. And for sure we
don't have test() function in B class..
Also if you don't add that line and extend C class from only A than.. You
will get the compile error that A is not a inner class.. It means "probably"
you can not call the Object class (the mother class) implicitly..