Vidyalelo
Ruby Programming · Q14

Inheritance and Polymorphism in Ruby

Programming · Ruby Programming · question 14

Q14

What is the purpose of the include keyword in Ruby classes?

A.
To create a new instance
B.
To define a new method
C.
To inherit from another class
D.
To mix in methods from a module into a class
Answer

Answer: Option D

Solution

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