Vidyalelo
Ruby Programming · Q10

Methods in Ruby

Programming · Ruby Programming · question 10

Q10

What does the `super` keyword do when called inside a method in Ruby?

A.
Calls the superclass method with the same name
Answer
B.
Calls the subclass method with the same name
C.
Calls the method again recursively
D.
None of the above

Answer: Option A

Solution

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