posted 15 years ago
Hi,
I have 3 classes: Class1, Class2 and Class3. Class2 extends Class1 and Class3 extends Class2.Class1 has a method M( ) (M has no argument).Class2 overrides the method M it inherits from Class1, and Class3 overrides the method M it inherits from Class2. If I'm in Class2 and want to call Class1 version of method M, I write :
.If I'm in Class3 and want to call Class2 version of method M, I write :
. But how must I proceed if I'm in Class3 and need to call directly Class1 version of method M (in other terms , if from Class1 I want to call Class1 grand-parent version of method M ?).
Thanks you in advance for your answers.