Examveda

What is the purpose of method overriding in Ruby?

A. To provide a new implementation for a method in the superclass

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


Join The Discussion

Related Questions on Object Oriented Programming (OOP) Concepts in Ruby