class Vertebrates {
public void move() {
System.out.println("Move");
}
}
class Mammel extends Vertebrates {
public void move() {
System.out.println("Walk");
}
}
class Dog extends Mammel{
public void move() {
System.out.println("Walk on haws");
}
}
class Demo {
public static void main(String args[]) {
Dog d = new Dog();
//insert code here
}
}
How can I call the move() method of Vertebrate by using the reference d of type Dog, using super statement or something?