this和super

this的两个用途:

1.引用隐式参数

2.调用该类中的其他构造函数

super的两个用途

1.调用超类的方法

2.调用超类的构造器

posted @ 2019-07-31 16:52  Gen-昔年  阅读(94)  评论(0)    收藏  举报