Vidyalelo
Ruby Programming · Q16

Inheritance and Polymorphism in Ruby

Programming · Ruby Programming · question 16

Q16

What is the purpose of inheritance in OOP?

A.
To hide the implementation details
B.
To allow a class to inherit properties and behaviors from another class
Answer
C.
To restrict access to certain methods
D.
None of the above

Answer: Option B

Solution

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