Vidyalelo
Ruby Programming · Q38

Best Practices and Code Conventions in Ruby

Programming · Ruby Programming · question 38

Q38

What does the term "polymorphism" mean in the context of Ruby programming?

A.
The ability of objects to be treated as instances of their parent class
B.
The practice of defining multiple methods with the same name but different implementations
C.
The ability of objects to respond to the same method call in different ways
Answer
D.
The practice of overriding inherited methods with custom behavior

Answer: Option C

Solution

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