问一个接口的问题
public interface Callback {
void callback(int param);
}
class Client implements Callback {
public void callback(int p) {
System.out.println("callback called with " + p);
}
}
class Intertest {
public static void main(String args[]) {
Client ob = new Client();
ob.callback(6);
}
}
上面的程序有什么问题?编译提示
cannot resolve symbol
symbol: class Callback
location : class Client
class Client implements Callback {
请大家帮忙!