区分子类方法中重名的三种变量

使用区别:

局部变量: 直接写成员变量名
本类的成员变量: this.成员变量名
父类的成员变量: super.成员变量名

posted @ 2020-08-26 18:46  PT小陈  阅读(167)  评论(0)    收藏  举报