A core java Question
Assume that class A extends class B, ich extends class C, also all three classes implements the method test(). how can a methd in class A invoke the test() method defined in class C with out creating a new inctance of class C.
1) super.test() 2) super.super.test() 3) c.test()
It is not possible. Only We Can make a call to immediate super class using super.
If you want to make a call to the particular class create object and call
ya you can call only immediate super class method by using super keyword.
Originally Posted by javarishi