Skip to content

Commit c2358c2

Browse files
authored
添加了换行w
1 parent db7728f commit c2358c2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/zh/quickstart/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,15 @@ mcfpp中的类必须以大写字母开头。
199199
`子类 : 父类/父接口`。允许继承多个类或接口。
200200
使用`override`关键字,从而实现对父类或者父接口中方法的重写。
201201
### super和this
202+
202203
调用父类构造方法:`super()`
204+
203205
调用自己的构造方法:`this()`
206+
204207
访问自身及父类的字段:`this.xxx`
208+
205209
访问静态成员:`ClassName.xxx`或`ClassName.function()`
210+
206211
:::warning{title=Note!}
207212
在mcfpp中,要访问一个类的成员,必须使用this关键字或者使用类名进行访问。
208213
:::

0 commit comments

Comments
 (0)