Object-Oriented Programming (OOP)

Inheritance is best defined as which of the following?

Correct answer

B. An OOP mechanism that allows a class to acquire properties and behaviors from another class.

Explanation

Inheritance refers to an OOP mechanism that allows a class to acquire properties and behaviors from another class.