Vidyalelo
Ruby Programming · Q10

Inheritance and Polymorphism in Ruby

Programming · Ruby Programming · question 10

Q10

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
Answer
C.
Objects of the same class to be treated as objects of different classes
D.
None of the above

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board