Object-Oriented Programming (OOP)
What does Abstract class refer to?
- A. A class that cannot be instantiated on its own and may contain abstract methods to be implemented by subclasses. ✓
- B. An OOP principle that hides complex implementation details and exposes only essential features.
- C. An OOP principle that bundles data and methods together while restricting direct access to some components.
- D. The ability of a subclass to provide a specific implementation of a method already defined in its parent class.
Correct answer
A. A class that cannot be instantiated on its own and may contain abstract methods to be implemented by subclasses.
Explanation
Abstract class refers to a class that cannot be instantiated on its own and may contain abstract methods to be implemented by subclasses.