Vidyalelo
Ruby Programming · Q29

Inheritance and Polymorphism in Ruby

Programming · Ruby Programming · question 29

Q29

What is the purpose of the extend keyword in Ruby?

A.
Calls a superclass method
B.
Initializes a new instance
C.
Adds methods from a module as class methods
Answer
D.
Adds methods from a module as instance methods

Answer: Option C

Solution

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