public interface InterfaceExample{
final int X;
void a();
void b();
}
class example implements public interface InterfaceExample{
final int X;
void a();
void b();
}
class example implements InterfaceExample{
void a(){
System.out.println("i lou");
}
}
public class Main {
public static void main(String[] args) {
Example example = new Example();
example.a();
}
}
{
void a(){
System.out.println("i love china");
}
}
public class Main {
public static void main(String[] args) {
Example example = new Example();
example.a();
}
}
错在哪里了 ?InterfaceExample这个接口有错误吗?