Vidyalelo
Ruby Programming · Q8

Modules and Mixins in Ruby

Programming · Ruby Programming · question 8

Q8

What is the purpose of polymorphism in Ruby?

A.
It allows creating multiple instances of a class
B.
It allows restricting access to certain methods
C.
It allows objects of different classes to be treated as objects of a common superclass
Answer
D.
It allows hiding the implementation details of a class

Answer: Option C

Solution

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