1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

Merge pull request #23 from zeason/patch-1

Update final、static、this、super.md
This commit is contained in:
SnailClimb 2018-09-17 16:28:55 +08:00 committed by GitHub
commit ad95c39f78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ public class Sub extends Super {
**使用 this 和 super 要注意的问题:**
- super 调用父类中的其他构造方法时调用时要放在构造方法的首行this 调用奔雷中的其他构造方法时,也要放在首行。
- super 调用父类中的其他构造方法时调用时要放在构造方法的首行this 调用本类中的其他构造方法时,也要放在首行。
- this、super不能用在static方法中。
**简单解释一下:**