Examveda
Examveda

What does polymorphism allow in OOP?

A. Objects of the same class to have different methods

B. Objects of different classes to be treated as objects of a common superclass

C. Objects of the same class to be treated as objects of different classes

D. Objects of the same class to have different methods

Answer: Option B


Join The Discussion

Related Questions on Inheritance and Polymorphism in Ruby

What is polymorphism in OOP?

A. The ability to hide implementation details

B. The ability to restrict access to certain methods

C. The ability for objects of different classes to be treated as objects of a common superclass

D. The ability to create multiple instances