Java super Keyword

Java Keywords : Using super to call the superclass of Dog (subclass)

Definition and Usage

The super keyword refers to superclass (parent) objects.

It is used to call superclass methods, and to access the superclass constructor.

The most common use of the super keyword is to eliminate the confusion between superclasses and subclasses that have methods with the same name.

To understand the super keyword, you should have a basic understanding of Inheritance and Polymorphism.

Related Pages

Read more about inheritance (subclasses and superclasses) in our Java Inheritance Tutorial.

Read more about polymorphism in our Java Polymorphism Tutorial.