Asked by
Lundi Mkhungwane
on Oct 27, 2024Verified
An abstract class can contain ____.
A) only abstract methods
B) only non-abstract methods
C) abstract and non-abstract methods
D) nothing
Abstract Class
An abstract class in object-oriented programming is a class that cannot be instantiated and is often used as a base class for other classes.
Non-Abstract Methods
Methods in Java that are declared with a body, meaning they are fully implemented and can be directly invoked, as opposed to abstract methods which are declared without an implementation.
- Acquire knowledge on the configuration and utility of abstract classes and methods positioned within a class hierarchy.
Verified Answer
TP
Learning Objectives
- Acquire knowledge on the configuration and utility of abstract classes and methods positioned within a class hierarchy.