Which of the following is a mechanism that allows several objects in an class hierarchy to have different methods with the same name?
AAll of the mentioned
BInheritance
CPolymorphism
DAggregation
Correct answer
C. Polymorphism
Explanation
Explanation: In polymorphism instances of each subclass will be free to respond to messages by calling their own version of the method.