Skip to content

Commit

Permalink
Update class-extends.md
Browse files Browse the repository at this point in the history
clss =>  class
  • Loading branch information
liuxuan1-1 committed Feb 5, 2022
1 parent 7fa7ee1 commit e064886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/class-extends.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ B.hello() // hello world

上面代码中,`hello()``A`类的静态方法,`B`继承`A`,也继承了`A`的静态方法。

子类无法继承父类的私有属性,或者说,私有属性只能在定义它的 clss 里面使用。
子类无法继承父类的私有属性,或者说,私有属性只能在定义它的 class 里面使用。

```javascript
class Foo {
Expand Down

0 comments on commit e064886

Please sign in to comment.