Can a class inherit the constructor of its superclass Why?

No a subclass cannot inherit the constructors of its superclass . Constructors are special function members of a class in that they are not inherited by the subclass.

Sizin İçin Seçtik  What happens when you don't use super () constructor?

Leave a Reply

Your email address will not be published. Required fields are marked *