Dear Ranchers, can someone help me to understand how I can use SUPER to access an overriden method two levels up the class hierarchy? is it even possible to do this. I would like to do something like the following,
class Animal {
public void eat() {
System.out.println("Animal Eat method");
}
}
class Horse extends Animal {
public void eat() {
System.out.println("Animal Eat method");
}
}
public class SuperTest extends Horse{
public static void main(
String[] args) {
//i would like to do something like this, but not sure of the syntax
super.super.eat();
}
}
[ June 05, 2008: Message edited by: robert stannard ]