单项选择题
类Teacher和Student是类Person的子类:
Personp;
Teachert;
Students;
//p,tandsareallnon-null.
if(tinstanceofPerson){s=(Student)t;}
最后一句语句的结果是:()
A.将构造一个Student对象
B.表达式是合法的
C.表达式是错误的
D.编译时正确,但运行时错误
点击查看答案&解析
相关考题
