hi all
suppose im implemeting a class emplyee where i have a method to display details
now i hav a subclass that inherits from the above class and i want to override the display method
how to i call that
suppose im implemeting a class emplyee where i have a method to display details
Code:
public void display(){
System.out.printtln("The name is" + name);
etc..
}
how to i call that
Code:
public void display(){
super.display( ); //is that right????
System.out.println("The...);
}
Comment