adplus-dvertising
frame-decoration

Question

What is inheritance in object-oriented programming?

a.

A feature that allows for the creation of a generic base class with multiple descendants.

b.

A feature that allows for accessing data members of a class.

c.

A feature that allows for calling member functions of a class.

d.

A feature that allows for the creation of multiple instances of a class.

Posted under Reverse Engineering

Answer: (a).A feature that allows for the creation of a generic base class with multiple descendants. Explanation:Inheritance allows for the creation of a generic base class that has multiple descendants, each with different functionality.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is inheritance in object-oriented programming?