> 数学 >
Person person=new Student(); person是Person类型还是Student类型?
人气:463 ℃ 时间:2019-12-01 13:40:14
解答
弱弱的说一句,要是Person类和Student类没有关系的话,这个语句不就是错的呀.public Person{}public Student extends Person{}
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版