Multiple choice technology programming languages

Can an abstract class have constructor(s)?

  1. Yes

  2. No

  3. In specific conditions

  4. Not sure

Reveal answer Fill a bubble to check yourself
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.