Files
Hui-s-notebook/logseq-java/pages/super关键字.md
2024-02-02 00:12:49 +08:00

6 lines
262 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
- [[this]]代表对象自身super代表从父类中继承的资源
- 用法与this一致
- |super.| 父类的|
|[[super()]]|父类的[[继承器]]|
- super()必须放置在代码的第一行不能与this()同时存在
- this范围大于super范围