Programming Tutorials

Comment on Tutorial - Method Overriding in Java By Henry



Comment Added by : Umapathi REddy

Comment Added at : 2012-05-23 09:54:29

Comment on Tutorial : Method Overriding in Java By Henry
class Abc
{
public void display()
{
System.out.println("hai");
}
class Bca extends Abc
{
public void display()
{
System.out.println("hello");
}
}
public static void main(String[] args)
{
Bca obj =new Bca();
obj.display();
}
}
//it shows error can explain


View Tutorial