Vidyalelo
Ruby Programming · Q14

Modules and Mixins in Ruby

Programming · Ruby Programming · question 14

Q14

What does the term "inheritance" refer to in Ruby?

A.
A mechanism by which a class can create multiple instances of another class
B.
A mechanism by which a class can hide implementation details from another class
C.
A mechanism by which a class can inherit properties and behaviors from another class
Answer
D.
A mechanism by which a class can override methods from another class

Answer: Option C

Solution

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