首页 > 继续教育
题目内容 (请给出正确答案)
[多选题]

类Teacher和Student是类Person的子类:Person p;Teacher t;Student s;//p,t ,s 都不为空if(t instanceof Person) {s=(Student)t;}下列说法错误的是()

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

B.将构造一个Student对象

C.表达式是错误的

D.表达式是合法的

答案
收藏

BD

如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“类Teacher和Student是类Person的子类:Pe…”相关的问题
第1题
Student: I'm nervous. Teacher:______. Betty, you'll finish it quickly.

Student: I'm nervous.

Teacher:______. Betty, you'll finish it quickly.

点击查看答案
第2题
手持式电动工具的塑料外壳Ⅱ类工具和一般场所手持式电动工具中的Ⅲ类工具必须接PE线()
点击查看答案
第3题
Teacher:Do you know what day is today?。 Student:Today is Thursday. Teacher:__________?Stud
ent:It’S July 11,2009.

A.What day is today

B.How are you today

C.What is the date today

D.What is today

点击查看答案
第4题
Student: Mrs. Kim, may I speak with you? Teacher: Hello, James. Please take a seat. ______

Student: Mrs. Kim, may I speak with you?

Teacher: Hello, James. Please take a seat. ______?

Student: I'm trying to figure out my schedule for spring semester. . .

A.Did you do a good job

B.How are you

C.Would you like something to drink

D.How can I help

点击查看答案
第5题
Teacher:When wiH the lecture begin?Student:It will begin at half past eight. Teacher:_____
_____?Student:About two hours.

A.What time is it

B.What day is today

C.How long will it last

D.How often

点击查看答案
第6题
Janet, ______was read by the teacher, is a top student in our class.A.the composition of h

Janet, ______was read by the teacher, is a top student in our class.

A.the composition of hers

B.the composition of whom

C.her composition

D.whose composition

点击查看答案
第7题
Which of the following is TRUE of teacher’s correction of his student’s writing errors? (

Which of the following is TRUE of teacher’s correction of his student’s writing errors? ()

A.It is good to correct all the errors

B.A teacher should write something on the papers to encourage his students

C.A teacher’s handwriting must be tidy and clear

D.A teacher had better point out the way for each student to improve his writing

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

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

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

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

点击查看答案
第9题
From the text we call infer that the writer is most likely to be a____A.schoolboyB.school

From the text we call infer that the writer is most likely to be a____

A.schoolboy

B.school teacher

C.schoolgirl

D.college student

点击查看答案
第10题
Pairs of words that exhibit the reversal of a relationship between the two items are

A.doctor and patient

B.husband and wife

C.male and female

D.teacher and student

点击查看答案
第11题
找出每组中不同类的单词()

A.teacher

B.student

C.sk

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