abstract class Inter {
public abstract void print();
public abstract void run();
}
class Nonym {
public static void main(String...args) {
Inter i = new Inter() {
public void print() {
System.out.println("good");
}
public void run() {
System.out.println("run");
}
};
i.print();
i.run();
}
}
添加回答
举报
0/150
提交
取消