Vidyalelo
Ruby Programming · Q37

Object Oriented Programming (OOP) Concepts in Ruby

Programming · Ruby Programming · question 37

Q37

What is the purpose of the `extend` keyword in Ruby classes?

A.
Adds methods from a module as class methods
Answer
B.
Adds methods from a module as instance methods
C.
Adds methods from a superclass
D.
Adds methods to the superclass

Answer: Option A

Solution

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