Vidyalelo
Ruby Programming · Q14

Advanced Topics in Ruby

Programming · Ruby Programming · question 14

Q14

What is the purpose of the include keyword in Ruby?

A.
To instantiate an object of a class
B.
To define a new class that inherits from an existing class
C.
To include a file in the current Ruby script
D.
To mix in module methods as instance methods of a class
Answer

Answer: Option D

Solution

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