抱歉标题不够清晰。以下是我的结构:
public interface Vehicle {...}
public class Car implements Vehicle {...}
那么:
public abstract class Fixer {
...
abstract void fix(Vehicle vehicle);
...
}
我希望你能为我提供以下服务:
public class CarFixer extends Fixer {
void fix(Car car) {...}
}
但是这个不起作用。Eclipse表示:
The type CarFixer must implement the inherited abstract method Fixer.fix(Vehicle)
。你有什么办法可以解决这个问题吗?