Intermediate
Object-Oriented Programming Concepts
Q64 / 100
What is the purpose of an abstract class's constructor if the class cannot be instantiated directly?
Correct! Well done.
Incorrect.
The correct answer is B) It can be called by subclass constructors (via super/parent calls) to initialize shared state
B
Correct Answer
It can be called by subclass constructors (via super/parent calls) to initialize shared state
Explanation
Subclasses commonly call the abstract parent's constructor to set up inherited fields before adding their own initialization.
Progress
64/100