Vidyalelo
Ruby Programming · Q23

Inheritance and Polymorphism in Ruby

Programming · Ruby Programming · question 23

Q23

What does the term "inheritance" mean in Object-Oriented Programming?

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