class Animal
{
public void eat()
{
}
public void printYourself()
{
System.out.println("in animal");
}
}
public class Horse767 extends Animal
{
public static void main(
String args[])
{
printYourself();
}
public void printYourself()
{
super.printYourself(); // Invoke the superclass
}
}
hi all,
the above program is giving compile time errors.can anybody provide the explanation for the above as why its giving compile time errors
thanks
venkat