摘要: super注意点: 1.super调用父类的构造方法,必须在构造方法的第一个 2.super必须只能出现在子类的方法或者构造方法中! 3.super和 this 不能同时调用构造方法! Vs this: 代表的对象不同: this:本身调用者这个对象 super:代表父类对象的应用 前提 this: 阅读全文
posted @ 2022-03-15 13:15 拿铁三分糖 阅读(199) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-03-15 12:17 拿铁三分糖 阅读(11) 评论(0) 推荐(0)