首页 > 公务员> 中国梦
题目内容 (请给出正确答案)
[单选题]

类Teacher和Student是类Person的子类:Person p;Teacher t;Student s;//p,t and s are all non

A.编译时正确,但运行时错误

B.将构造一个Student对象

C.表达式是错误的

D.表达式是合法的

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“类Teacher和Student是类Person的子类:Pe…”相关的问题
第1题
EVA、PE类聚合物改性沥青混合料的废弃温度是()A.165℃B.175℃C.185℃D.195℃

EVA、PE类聚合物改性沥青混合料的废弃温度是()

A.165℃

B.175℃

C.185℃

D.195℃

点击查看答案
第2题
A.A cook.B.A teacherC.A clerkD.A student

A.A cook.

B.A teacher

C.A clerk

D.A student

点击查看答案
第3题
The teacher treats the student ______ (就像自己的亲生孩子一样).

The teacher treats the student ______ (就像自己的亲生孩子一样).

点击查看答案
第4题
If a teacher and a student talk on the IITV network, there is______.

点击查看答案
第5题
The teacher treats the student ______ (就像白己的亲生孩子一样).

The teacher treats the student ______ (就像白己的亲生孩子一样).

点击查看答案
第6题
What is the possible relationship between the two speakers?

A、A couple

B、Colleagues

C、Teacher and student

点击查看答案
第7题
A.A teacher must be judged by people from other professionsB.A teacher must be judged

A.A teacher must be judged by people from other professions

B.A teacher must be judged by his or her education

C.A teacher must be judged by his or her colleagues

D.A teacher must be judged by his or her student test scores

点击查看答案
第8题
编写一个类实现java.util.Comparator接口,使用该类对象实现Student对象按姓名笔画顺序排序。

点击查看答案
第9题
The student followed the teacher’s_______and finally passed the test.

A.advices

B.advice

C.advise

点击查看答案
第10题
The two speakers are _________.

A.teacher and student

B.colleagues

C.classmates

点击查看答案
第11题
C++中,关于构造函数和析构函数,正确的描述是()。
A、在定义类时,必须自定义构造函数和析构函数,在创建对象时自动调用构造函数,在释放对象时自动调用析构函数

B、构造函数和析构函数均可以重载

C、已知类Student以及Student*p;在使用p=newStudent;时自动调用无参构造函数创建动态对象,在deleltep;时自动调用析构函数释放动态对象

D、构造函数和析构函数都可以成为虚函数

点击查看答案
退出 登录/注册
发送账号至手机
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改