Vidyalelo
Ruby Programming · Q28

Object Oriented Programming (OOP) Concepts in Ruby

Programming · Ruby Programming · question 28

Q28

In Ruby, what is the purpose of method overloading?

A.
To provide multiple definitions for the same method with different parameters
Answer
B.
To override a method in the superclass
C.
To provide a new implementation for a method in the subclass
D.
To create private methods

Answer: Option A

Solution

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