How do you define a super class?

A superclass is the class from which many subclasses can be created . The subclasses inherit the characteristics of a superclass. The superclass is also known as the parent class or base class. In the above example, Vehicle is the Superclass and its subclasses are Car, Truck and Motorcycle.

Sizin İçin Seçtik  What is super constructor in Java?

Leave a Reply

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

How do you define a super class?

A superclass is the class from which many subclasses can be created . The subclasses inherit the characteristics of a superclass. The superclass is also known as the parent class or base class. In the above example, Vehicle is the Superclass and its subclasses are Car, Truck and Motorcycle.

Sizin İçin Seçtik  Can constructor be inherited through a subclass that calls the superclass constructor?

Leave a Reply

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