Object-Oriented Programming (OOP)
Identify the correct definition of Abstraction.
- A. A class that cannot be instantiated on its own and may contain abstract methods to be implemented by subclasses.
- B. An OOP feature where a class can inherit properties and behaviors from more than one parent class.
- C. The ability of a subclass to provide a specific implementation of a method already defined in its parent class.
- D. An OOP principle that hides complex implementation details and exposes only essential features. ✓
Correct answer
D. An OOP principle that hides complex implementation details and exposes only essential features.
Explanation
Abstraction refers to an OOP principle that hides complex implementation details and exposes only essential features.