Vidyalelo
Ruby Programming · Q26

Modules and Mixins in Ruby

Programming · Ruby Programming · question 26

Q26

What does the include keyword do in Ruby?

A.
Creates a new instance
B.
Defines a new method
C.
Mixes in methods from a module into a class
Answer
D.
Inherits from another class

Answer: Option C

Solution

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