Yes , an abstract class can have a constructor in Java. You can either explicitly provide a constructor to the abstract class or if you don’t, the compiler will add a default constructor of no argument in the abstract class.
Yes , an abstract class can have a constructor in Java. You can either explicitly provide a constructor to the abstract class or if you don’t, the compiler will add a default constructor of no argument in the abstract class.