美文网首页java复习
2020-06-19this与super

2020-06-19this与super

作者: 智障猿 | 来源:发表于2020-06-19 10:41 被阅读0次
关键字 访问成员变量 访问构造方法 访问成员方法
this this.成员变量:访问本类的成员变量 this(...):访问本类的构造方法 this.成员方法():访问本类的成员方法
super super.成员变量:访问父类的成员变量 super(...):访问父类的构造方法 super.成员方法():访问父类的成员方法

相关文章

网友评论

    本文标题:2020-06-19this与super

    本文链接:https://www.haomeiwen.com/subject/vmcvxktx.html