Does subclass call superclass constructor?

Thus, when a subclass object is instantiated the subclass object must also automatically execute one of the constructors of the superclass . To call a superclass constructor the super keyword is used. The following example programs demonstrate use of super keyword.

Sizin İçin Seçtik  JS super () nedir?

Leave a Reply

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