Vidyalelo
Ruby Programming · Q21

Inheritance and Polymorphism in Ruby

Programming · Ruby Programming · question 21

Q21

What is the purpose of the self keyword in Ruby?

A.
Refers to the current instance of the class
B.
Refers to the superclass of the class
C.
Refers to the class itself
Answer
D.
Refers to the class constructor

Answer: Option C

Solution

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