摘要: super注意点: 1. super调用父类的构造方法,必须要在构造方法里面的第一行 2. super必this须只能出现在子类的方法或者构造方法中! 3. super 和 this 不能同时调用构造方法! super Vs this : 代表的对象不同: this:本身调用者的对象 super:代 阅读全文
posted @ 2021-02-04 17:58 麻辣小鱼干 阅读(56) 评论(0) 推荐(0)