We have next classes:
class Super { void foo() { System.out.println(\"Super\"); } } class Sub extends Super { void foo() { super
when you write super.foo(); you are calling the superclass method.
super.foo();
The foo method of class sub overrides the foo method of Super by adding an instruction to the super class method.