title: Calling a method from a superclass with a reference to a derived one
body: <pre><code>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
    }
  }
  </code></pre>
  
  <p>How can I call the move() method of Vertebrate by using the reference d of type Dog, using super statement or something?</p>