Why constructer used in Abstract class ?

The constructor in abstract class can do some init work which all the subclass do not need to repeat in its own construtor.


We can not create the object of abstract class because abstract class is not instantiated at the time of creation But we can extends the abstact class. So we used the constructor to create the object.

Comments