判断x和y是否存在父子关系
类型转化
父类转子类需要强制转换Son son=(Son)father
子类转父类不需要 去括号
子类转父类会丢失重写的方法
posted on 2022-07-24 23:48 大风吹过12138 阅读(38) 评论(0) 收藏 举报