最新回答 / weixin_宝慕林1158390
相当于做了判断,只有是studet实例才会走到if内部,反过来走到if内部的一定是student,所以可以访问student方法
2020-09-28