Is it possible to have constructor in abstract class?
Though, you cannot create objects for the abstract class still there is a possibility that abstract classes may have constructor,the reason is derived classes may call the base or abstract class constructor.
it is not possible to have constructors in an abstract class.
it is possible to have constructors in abstract class, buecause to create object for that class it requires constructor.
all are true.
Abstract classes are just like any other class. It can have everything what ever a normal class contains. Though we can't create object for an abstract class, still we can have a constructor. Because when we derive an abstract class in other classes, then they may call super class constructor.
Back To Top