建立抽象类子类时编译器提示错误,不知道哪里不对
package com.imooc;
public abstract class Animal {
public abstract void eat();
public abstract void call();
}
package com.imooc;
public class Dog extends Animal {
@Override
public void eat(){
// TODO Auto-generated method stub
}
@Override
public void call() {
// TODO Auto-generated method stub
}
}
下面是eclipse提示的错误
Multipie markers at this line
-implements com.imooc.Animal.eat
-The method eat() of type Dog must override or implement a supertype method