A subclass can either use a method of its own or can redefine a method that is being originally defined in super class or can use a method of the superclass without redefining it.

First one is a typical use of a method where a method is defined and implemented.

Secondly, a method used in superclass can be redefined in the subclass.


And in implementation, the redefined method is implemented just like any other method. This ensures that only the subclass’ method is executed at runtime. An important thing to note is that the interface of the method remains the same.

Lastly, calling a method defined in superclass is possible by using super keyword in the redefined method. Hence the functionality can be reused without recoding it.

CALL METHOD SUPER-><method_name>