// super keyword demonstration
class one
{
String x = "Velan";
}
class two extends one
{
String x = "Senthil";
void display()
{
System.out.println("\n"+x);
System.out.println("\n"+super.x);
}
}
class ssvSuper
{
public static void main(String arg[])
{
two t = new two();
t.display();
}
}This code snippet is for Super key Demo in Java.
