面向对象 在程序入口下便利不同类的数组
1 回答

wm8888
TA贡献21条经验 获得超8个赞
没有重写toString方法,默认使用Object的toString方法,所以会打印这样的信息,在Student类中重写一下toString方法,可以按照自己想要的方式输出。
添加回答
举报
0/150
提交
取消