package P;
interface A {
public void print();
}
package P;
class B implements A {
public void print(){
System.out.println("Hello world");
}
}
错误提示:The type A cannot be a superinterface of B; a superinterface must be an interface
package P;
interface A {
public void print();
}
package P;
class B implements A {
public void print(){
System.out.println("Hello world");
}
}
错误提示:The type A cannot be a superinterface of B; a superinterface must be an interface
interface A {
public void print();
}
->
interface A {
void print();
}