+ 1
what is the use of constructer in abstract class
how do we use constructer in abstract class
3 Answers
+ 2
Abstract classes have constructors and those constructors are always invoked when a concrete subclass is instantiated. We know that when we are going to instantiate a class, we always use constructor of that class. Now every constructor invokes the constructor of its super class with an implicit call to super().
+ 1
Another thing is also that abstract class may sometime contain fields...and thats where constructors do come handy while dealing with abstract classes
0
abstract class they can not creat constructer because of they can not create object