皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
基于人类(Person)定义学生类(Student),通过测试类验证类的继承特性,理解方法重写和super关键字的使用,具体要求如下: (1)定义公有类人类(Person),定义属性nationality描述国籍,定义属性name描述人的姓名;定义公有方法show()用于输出人的详细信息;定义方法sleep(),用输出语句描述人需要睡觉;定义2个参数的构造方法,用于为两个属性初始化; (2)定义公有类Student类从Person类继承,定义新的属性studentId描述,定义新属性score描述学生的成绩;定义3个参数的构造方法,用于为学生的、国籍、姓名初始化(在构造方法中首先调用父类构造方法为继承的属性赋值);定义新的方法study(),用输出语句描述学生的学习行为;改写show()方法,用于输出学生的详细信息(国籍和姓名通过调用父类的show方法输出); (3)编写测试类(类名以姓名拼音加作业序号命名),在主方法中创建Student类的对象,为属性赋值,并调用方法。
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】某双链 DNA 分子中腺嘌呤的含量是 15% ,则胞嘧啶的含量应为( )。 [ 浙江工业大学 2018 研 ]
A.
15%
B.
30%
C.
35%
D.
42.5%
【单选题】Which is the only letter that can be pronounced as /æ/ in English words?
A.
u
B.
e
C.
o
D.
a
【简答题】It was announced that only when the terrible disease was under control _______ to return to their homes. A. the residents would decide B. would the residents decide C. would the residen...
【单选题】How did the residents in the Vrain School District respond to the budget shortage?
A.
They felt somewhat helpless about it
B.
They accused those responsible for it
C.
They pooled their efforts to help solve it
D.
They demanded a through investigation
【单选题】某双链DNA分子中腺嘌呤的含量是15%,则胞嘧啶的含量应为( %)。
A.
15
B.
35
C.
50
D.
42.5
【单选题】An emergency bilge pumping system is provided and should be _____ of the main bilge pumping system, according to the SOLAS 74 Convention.
A.
dependent
B.
independent
C.
in series
D.
in parallel
【单选题】Accidental flooding of the engine room bilges by the bilge main is prevented by( ).
A.
stop-check valves installed in the bilge suction manifolds
B.
using a positive displacement reciprocating bilge pump
C.
installing educators in all bilge rose boxes
D.
installing a swing check before each bilge valve
【单选题】某完全配对的双链 DNA 分子中腺嘌呤的含量为 15% ,则胞嘧啶的含量应为
A.
15%
B.
30%
C.
40%
D.
35%
E.
7%
【简答题】茎和根在外部形态上最主要的区别是:茎具有 ____和____,茎上长有____、____。
【简答题】茎和根在外部形态上最主要的区别茎具有: ___________________ 、 __________________ 、 ___________________ 、 ______________________ 。
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题