编译可以过,但是不能运行 请教问问什么问题
class demo2_interface {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
interface interA
{
public abstract void printA();
}
interface interB
{
public abstract void printB();
}
class /*abstract*/ demo implements interA,interB
{
public /*abstract*/ void printA(){
System.out.print("Hello World!");
}
public void printB(){
System.out.print("Hello World!");
}
} |
|