单选题

类Teacher和Student是类Person的子类;Person p;Teacher t;Student s; //p, t and s are all non-null.if(){ s =()t; }最后一句语句的结果是()

A. 将构造一个Student对象;
B. 表达式是合法的;
C. 表达式是错误的;
D. 编译时正确,但运行时错误。

查看答案
该试题由用户981****91提供 查看答案人数:8418 如遇到问题请联系客服
正确答案
该试题由用户981****91提供 查看答案人数:8419 如遇到问题请联系客服
热门试题
Every student and every teacher _____. 以下哪个是Student类创建对象的正确语句() 通过Person类创建对象p的代码是__ The student could not _____ what the teacher was trying to explain() () interesting person our English teacher is! 在类Acoount中,正确引入类school.Student的语句是哪一项?() What is the dominant teacher-student relationship in China() If a student pronounces a word wrongly, teacher should______() The teacher suggested that each student a plan for the vacation. The teacher asked the new student () class he was in. 假设student类定义了Name,ClassInfor,StuNumber,利用对象初始化器student类的一个对象并初始化它的属性,下面写法正确的是( ) When a teacher sees to it that every student has the equal access to lockstepactivities in class, the teacher is playing the role of a(n)_______. The teacher is strict _____ every student and _____ everything he does. [ ] The teacher is strict _____every student and _____everything he does. [ ] The student is _________ see the teacher because he_________a mistake. Your teacher is the person who teaches you. When a teacher sees to it that every student has the equal access to lockstep activities in class, the teacher is playing the role of a(n)_______. 以下的SQL语句,Student与Person之间的关系是(  )。CREATE TYPE Person(name char(20),address varchar(50));CREATE TYPE Student(under Person(degree char(20)department char(20)); The student’s behavior cost the teacher asteepless night . He never thought his student ______ computer games for awhole class . The student’s behavior cost the teacher a steepless night He never thought his student ______ computer games for a whole class
购买搜题卡会员须知|联系客服
会员须知|联系客服
关注公众号,回复验证码
享30次免费查看答案
微信扫码关注 立即领取
恭喜获得奖励,快去免费查看答案吧~
去查看答案
全站题库适用,可用于聚题库网站及系列App

    只用于搜题看答案,不支持试卷、题库练习 ,下载APP还可体验拍照搜题和语音搜索

    支付方式

     

     

     
    首次登录享
    免费查看答案20
    登录成功
    首次登录已为您完成账号注册,
    可在【个人中心】修改密码或在登录时选择忘记密码
    账号登录默认密码:手机号后六位