Super Method
class parent
{
public void display()
{
System.out.println("Inside Parent display");
}
}
public class Child extends Parent
{
public void display() // Overridden method
{
System.out.println("Inside Child display");
super.display();
}
public static void main(String[] args)
{
Child c=new Child();
c.display();
}
}
Output:
Inside Child display
Inside Parent display