下列类定义中,不正确的是(
)
A: class x extends y {
.... }
B: static class x
implements y1,y2 { .... }
C: public class x extends
Applet { .... }
)
A: class x extends y {
.... }
B: static class x
implements y1,y2 { .... }
C: public class x extends
Applet { .... }
举一反三
- 下列类头定义中,错误的是 ?( )。 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: class x extends y { .... } C: class x implements y1,y2 { .... } D: public class x extends MouseAdapter,KeyAdapter { .... }
- 下列类的定义中,错误的是() A: class x{....} B: public x extends y{...} C: public class x extends y{....} D: class x extends y implements yl{....}
- 现有[br][/br] public class Parent{[br][/br] public void change (int x){[br][/br] }[br][/br] }[br][/br] public class Child extends Parent{[br][/br] //覆盖父类change方法[br][/br] }[br][/br]下列哪个声明是正确的覆盖了父类的change方法 A: protected void change (int x){} B: public void change(int x, int y){} C: public void change (int x){} D: public void change (String s){}