Possible Duplicate:
Why is super.super.method(); not allowed in Java?
This is my code.. Suppose I have three class like
public class ExtendsCheck {
public void move() {
System.out.println("M in Extends Check");
}
}
public class ExtendsCheck2 extends ExtendsCheck{
public void move() {
System.out.println("M in Extends Check 2");
}
}
public class ExtendsCheck3 extends ExtendsCheck2{
public static void main(String[] args)
{
ExtendsCheck3 e3 = new ExtendsCheck3();
e3.move();
}
}
When i called e3.move()
, the method move()
from ExtendsCheck2
gets called.
My question is what do i have to do, if i want to call the move() of ExtendsCheck class.