Vidyalelo
Ruby Programming · Q25

Object Oriented Programming (OOP) Concepts in Ruby

Programming · Ruby Programming · question 25

Q25

What is the purpose of the extend keyword in Ruby?

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

Answer: Option A

Solution

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