Examveda

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

D. A mechanism by which a class can override methods from another class

Answer: Option C


Join The Discussion

Related Questions on Inheritance and Polymorphism in Ruby

What is polymorphism in OOP?

A. The ability to hide implementation details

B. The ability to restrict access to certain methods

C. The ability for objects of different classes to be treated as objects of a common superclass

D. The ability to create multiple instances