Search⌘ K

Super Keyword

The super keyword in Java allows a subclass to access methods and fields from its superclass, especially when they are overridden or hidden. It can invoke superclass constructors, hidden fields, and interface default methods. For instance, a child class can call its parent's constructor and manipulate variables from both classes, demonstrating the keyword's versatility in method calls and field access within an inheritance hierarchy.

We'll cover the following...
...