How do you call a base class constructor?

A derived Java class can call a constructor in its base class using the super keyword . In fact, a constructor in the derived class must call the super’s constructor unless default constructors are in place for both classes.

Sizin İçin Seçtik  MASAK limiti ne kadar?

Leave a Reply

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