下列类定义中,错误的是( )。
A: class x { .... }
B: class x extends y { .... }
C: class x implements y1,y2 { .... }
D: public class x extends MouseAdapter,KeyAdapter { .... }
A: class x { .... }
B: class x extends y { .... }
C: class x implements y1,y2 { .... }
D: public class x extends MouseAdapter,KeyAdapter { .... }
举一反三
- 下列类头定义中,错误的是 ?( )。 A: public x extends y B: public class x extends y C: class x D: class x extends y implements y1
- 列类头定义中,错误的是 A: public x extends y B: public class x extends y C: class x extends y implements y1 D: class x
- 下列类的定义中,错误的是() A: class x{....} B: public x extends y{...} C: public class x extends y{....} D: class x extends y implements yl{....}
- 下列类定义中,不正确的是(<br/>) A: class x extends y {<br/>.... } B: static class x <br/>implements y1,y2 { .... } C: public class x extends<br/>Applet { .... }
- 下列哪个方法可用于创建一个可运行的类() A: public class X implements Runnable{public void run() {……}} B: public class X extends Thread{public void run() {……}} C: public class X extends Thread{public int run() {……}} D: public class X implements Runnable{protected void run() {……}}