Vidyalelo
Ruby Programming · Q23

Object Oriented Programming (OOP) Concepts in Ruby

Programming · Ruby Programming · question 23

Q23

What is the purpose of method overriding in Ruby?

A.
To provide a new implementation for a method in the superclass
Answer
B.
To hide a method from the superclass
C.
To create a new method in the subclass
D.
To provide access to private methods

Answer: Option A

Solution

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