Skip to content

Commit

Permalink
Update class.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AnonymousAAArdvark authored May 21, 2023
1 parent 66b2f5c commit 32b5624
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/class.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ To declare a class, use the ```类``` keyword followed by the class name:
Methods are functions that are declared within a class and adds functionality to the objects that belong in that class.
```c
类 树 「
功能 打印()「
打印()「
系统。打印行("我是一个树!"
Expand All @@ -25,7 +25,7 @@ Methods are functions that are declared within a class and adds functionality to
Like regular functions, you can add parameters to methods.
```c
类 树 「
功能 打印(形容)「
打印(形容)「
系统。打印行("我是一个" + 形容 + "树!"
Expand Down Expand Up @@ -101,7 +101,7 @@ A class can inherit from a “parent” or superclass. When you invoke a method
To specify a parent class, use the `````` operator.
```c
类 树 「
功能 打印()「
打印()「
系统。打印行("我是一个树!"
Expand All @@ -123,7 +123,7 @@ The keyword ```超``` is used within child classes to execute methods that they

类 橡木:树「
功能 打印()「
打印()「
超。打印("橡木"
Expand Down

0 comments on commit 32b5624

Please sign in to comment.