Object-Oriented Programming (OOP)
Identify the correct concept described as: an OOP mechanism that allows a class to acquire properties and behaviors from another class.
- A. Method overriding
- B. Constructor
- C. Encapsulation
- D. Inheritance ✓
Correct answer
D. Inheritance
Explanation
Inheritance refers to an OOP mechanism that allows a class to acquire properties and behaviors from another class.