皮皮学,免费搜题
登录
搜题
【单选题】
class Parent{ public String name; public Parent(String pName){ this.name = pName; } } public class Test extends Parent { //1 public Test(String Name){ //2 name="hello"; //3 super("kitty"); //4 } }
A.
第2行错误,Test类的构造函数中参数名称应与其父类构造函数中的参数名相同
B.
第3行错误,应使用super关键字调用父类的name属性,改为super.name="hello";
C.
第4行错误,调用父类构造方法的语句必须放在子类构造方法中的第一行
D.
程序编译通过,无错误
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【简答题】室外单位工程可划分为室外建筑环境和室外安装两大类。( )
【简答题】室外单位工程可划分为( )。
【判断题】Tarzan could not understand English when he first met Jane.()
A.
正确
B.
错误
【简答题】两个声音的音调间的距离,称为( ) 。
【单选题】When I saw Jane, I stopped and smiled, but she ______ me and walked on.
A.
refused
B.
denied
C.
ignored
D.
missed
【单选题】It was Jane_____ I saw in the library this morning.
A.
that
B.
which
C.
what
D.
when
【单选题】肉类原料的致嫩方法有盐致嫩、嫩肉粉致嫩和()致嫩
A.
碳酸钠
B.
C.
明矶
D.
氢氧化钠
【判断题】肉类原料的致嫩方法有碱致嫩、盐致嫩和嫩肉粉致嫩三类。
A.
正确
B.
错误
【单选题】When he saw Jane fall down on the ice, he couldn ' t help _____.
A.
laugh
B.
laughs
C.
to laugh
D.
laughing
【简答题】肉类原料的致嫩方法有盐致嫩、嫩肉粉致嫩和( )致嫩。