【判断题】在构造方法中如调用super()语句,则必须将其放在构造方法第一行。 ( )
【单选题】分析如下所示的Java代码,则选项中的说法正确的是()。 class Parent { protected String name; public Parent(String pName) { this.name = pName; } } Public class Child extends Parent { //1 Public Child(String name) { //2...
A.
第2行错误,Child类的构造方法应有String类型的参数
B.
第3行错误,应使用super关键字调用父类的name属性,改为super.name = “hello”
C.
第4行错误,调用父类构造方法的语句必须放在子类构造方法中的第一行
【单选题】What will happen next?
A.
The audience will watch a film clip.
B.
A tennis player will answer questions.
C.
The audience will leave the meeting.
D.
A player will sign autographs.
【单选题】In the film clip, Carrie bought _________ in a bazaar.
【判断题】在构造方法中如调用 super() 语句,则必须使其成为构造方法中的第一条语句。
【单选题】In the film clip , train carrying some women is leaving for _________.
A.
Schindler’s factory in Poland
B.
Schindler’s factory in Czechoslovakia
D.
Auschwitz concentration camp