我有一堂课叫:
public class NXTCommAndroid implements NXTComm
Eclipse 给出以下红色错误
NXTCommAndroid 类型必须实现继承的抽象方法 NXTComm.search(String)
IDE 建议要么使类抽象,这是错误的,要么添加未实现的方法,这似乎很简单,除了方法已经实现。
它补充说:
//@Override
public NXTInfo[] search(String name) throws NXTCommException {
// TODO Auto-generated method stub
return null;
}
但这已经存在:
public NXTInfo[] search(String name, int protocol) throws NXTCommException {
//stuff that would take up too much room
}