Can an abstract class have constructor(s)?
-
Yes
-
No
-
In specific conditions
-
Not sure
A
Correct answer
Explanation
Abstract classes can have constructors. These constructors are called when a subclass is instantiated (through super() calls) to initialize the abstract class's fields and perform setup common to all subclasses.