Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by whitelisting our website.

Which of the following is a mechanism that allows several objects in an class hierarchy to have different methods with the same name ?

Which of the following is a mechanism that allows several objects in an class hierarchy to have different methods with the same name ?

A. Aggregation
B. Polymorphism
C. Inheritance
D. All of the mentioned

Explanation: In polymorphism instances of each subclass will be free to respond to messages by calling their own version of the method.