登录

类Teacher和Student都是类Person的子类,进行如下声明:Person p;Teacher t;Student s;p,t和s都是非空值if (t instanceof Person) { s = (Student)t;}这个语句产生的结果是:( )

查看答案:0.2积分