Answer: Yes, an abstract class can have a constructor. In general, a class constructor is used to initialize fields . Along the same lines, an abstract class constructor is used to initialize fields of the abstract class.
Answer: Yes, an abstract class can have a constructor. In general, a class constructor is used to initialize fields . Along the same lines, an abstract class constructor is used to initialize fields of the abstract class.