Matthew Brown wrote:Hi guys. Thanks for being helpful, but the original question was asked in 2000, so I doubt they're still looking for an answer.
Ilakya Mukunth wrote:Can anyone help me to provide the solution for the below question?
You are given a class hierarchy with an instance of the class Dog. The class Dog is a child of mammal and the class Mammal is a child of the class Vertebrate. The class Vertebrate has a method called move which prints out the string "move". The class mammal overrides this method and prints out the string "walks". The class Dog overrides this method and prints out the string "walks on paws". Given an instance of the class Dog,. how can you access the ancestor method move in Vertebrate so it prints out the string "move";