Vidyalelo
Ruby Programming · Q4

Modules and Mixins in Ruby

Programming · Ruby Programming · question 4

Q4

What does polymorphism allow in Ruby?

A.
Objects of different classes to be treated as objects of a common superclass
Answer
B.
Objects of different classes to have the same methods
C.
Objects of the same class to have different methods
D.
Objects of the same class to be treated as objects of different classes

Answer: Option A

Solution

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