Examveda

What is the significance of using the super keyword in a Ruby class?

A. It initializes a superclass object

B. It returns the superclass

C. It calls the same method in the superclass

D. It calls the same method in the subclass

Answer: Option C


Join The Discussion

Related Questions on Inheritance and Polymorphism in Ruby

What is polymorphism in OOP?

A. The ability to hide implementation details

B. The ability to restrict access to certain methods

C. The ability for objects of different classes to be treated as objects of a common superclass

D. The ability to create multiple instances