编译器报错
package moblie;
public abstract class Telephone {
public abstract void call();
public abstract void message();
}
package moblie;
public class Cellphone extends Telephone {
@Override
public void call() {
// TODO Auto-generated method stub
System.out.println("通过键盘打电话");
}
@Override
public void message() {
// TODO Auto-generated method stub
System.out.println("通过键盘发短信");
}
}
这是我全部代码 但是编译器报错 说
The method call() of type Cellphone must override or implement a supertype method
怎么回事?