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. To understand how to use the super keyword to call a base class constructor, follow these 10 steps.

Leave a Reply

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