📄 quiz9_4.java
字号:
interface Y {
public void f();
}
abstract class Z {
public abstract void g();
public void h() {
System.out.println( "Hello!" );
}
}
public class Quiz9_4 {
public static void main( String[] args ) {
/* Object y = new Y() {
public void f() {
System.out.println( "Choice a)" );
}
}; */
/* Z z = new Z() {
public void g() {
System.out.println( "Choice b)" );
}
}; */
/* Object y = new Y, Z() {
public void f() {
System.out.println( "Choice c)" );
}
public void g() {
System.out.println( "Choice c)" );
}
}; */
/* Z z = new Z() {
public void h() {
System.out.println( "Choice d)" );
}
}; */
/* Object z = new Z() {
public void g() {
System.out.println( "Choice e)" );
}
public void h() {
System.out.println( "Choice e)" );
}
}; */
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -