为你找到 1000 条关于 Java5-3 的结果
对于下列代码:  1:classPerson{  2:publicvoidprintValue(inti,intj){//...}  3}:publicvoidprintValue(inti){//...}  4:}  5:publicclassTeacherextendsPerson{  6:publicvoidprintValue(){//...}  7:publicvoidprintValue(inti){//...}  8:publicstaticvoidmain(Stringargs[]){  9:Persont=newTeacher();  10:t.printValue(10);  11:}  第10行语句将调用哪行语句?()
D
下列哪个叙述是正确的?
D
抽象方法是一种只有说明而无具体实现的方法。
A派生出子类B,B派生出子类C,并且在Java源代码中有如下声明:_x000D_1:Aa0=newA();_x000D_2:Aa1=newB();_x000D_3:Aa2=newC();_x000D_问以下哪个说法是正确的?()
一个抽象的类不能直接用new命令创建对象。
如果一个类中包含抽象方法,则这个类也必须定义为抽象类。
如果p是父类Parent的对象,而c是子类Child的对象,则语句c=p是正确的。
可以定义抽象方法为static。
下面关于super的说法中,错误的是()
如果p是父类Parent的对象,而c是子类Child的对象,则语句c=p是正确的。
B
抽象方法是一种只有说明而无具体实现的方法。
A
下面说法不正确的是()。
对于下列代码:  1:classPerson{  2:publicvoidprintValue(inti,intj){//...}  3}:publicvoidprintValue(inti){//...}  4:}  5:publicclassTeacherextendsPerson{  6:publicvoidprintValue(){//...}  7:publicvoidprintValue(inti){//...}  8:publicstaticvoidmain(Stringargs[]){  9:Persont=newTeacher();  10:t.printValue(10);  11:}  第10行语句将调用哪行语句?()
如果一个类中包含抽象方法,则这个类也必须定义为抽象类。
A
下列哪个叙述是正确的?