一个很简单的程序 但是出错了 不知道为什么 请指教 谢谢
错误如下:
java.lang.NoSuchMethodError: main
Exception in thread "main" 代码如下:
class Animal
{
int height;
int weight;
void breathe()
{
System.out.println("Animal breathe!");
}

void eat()
{
System.out.println("Animal eat!");
}
}class Fish extends Animal
{
}class A
{ public static void main(String[] args)
{
Animal al=new Animal();
Fish fh=new Fish();
al.breathe();
fh.eat();
}
}