皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【单选题】
请阅读下面的程序后,请问哪个选项是正确的答案。 class Animal { public Animal() { System.out.println("我是一只动物"); } public Animal(String name) { System.out.println("我是一只" + name); } } class Dog extends Animal { public Dog() { super("松狮狗"); } } public class Demo { public static void main(String[] args) { Dog d = new Dog(); } }
A.
在子类的构造方法中通过super("松狮狗")调用父类的有参构造方法,程序的运行结果是:我是一只松狮狗。
B.
super()与this()可以同时存在于同一个构造方法中。
C.
在子类的构造方法中通过super指定调用父类的哪个构造方法,如果没有指定,在实例化子类对象时,不知道调用父类哪个构造方法。
D.
super关键字不可以调用父类的成员方法。
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】______ is a branch of linguistics which studies the internal structure of words and the rules by which words are formed.
A.
Syntax
B.
Grammar
C.
Morphology
D.
Morpheme
【判断题】孟子被称为 “ 亚圣 ” ,与孔子两人并称为 “ 孔孟 ” 。
A.
正确
B.
错误
【单选题】电源电动势为2V,内电阻是0.1Ω,当外电路短路时,电路中的电流和端电压分别为()
A.
20A、2V
B.
B、200
C.
0、2V
D.
0、0
【单选题】According to the yin-yang theory ,which part of human body belongs to Yin ?
A.
Abdomen
B.
Back
C.
Exterior.
D.
Upper part.
【单选题】电源电动势是2V,内电阻是0.1Ω,当外电路短路时,电路的端电压为()。
A.
2V
B.
O
C.
0.2V
D.
2.1V
【判断题】孔子名丘,字仲尼,春秋时鲁国人,他是儒家学派的创始人,被称为孔圣人,孟子被称为亚圣,两人并称为孔孟。
A.
正确
B.
错误
【判断题】孟子被称为亚圣,他主张性善论
A.
正确
B.
错误
【单选题】[U9R3] Which of the following is true about the theory of Yin-yang?
A.
The characteristics of Yang are active, internal, warm, and organic.
B.
Yin-Yang can be used to explain the pathological changes in the human body.
C.
The heat, warmth, sour and bitter of foods belong to Yang.
D.
Yin-Yang describes the movement and static laws of things in nature.
【单选题】电源电动势为2V,内电阻是0.1Ω,当外电路断路时,电路中的电流和端电压分别为( )
A.
0A、2V
B.
20A、2V
C.
20A、0V
D.
0A、0V
【多选题】Which food belongs to Yin food?
A.
apple
B.
celery
C.
tomato
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题