Merge pull request #1108 from liuxuan1-1/patch-2

Update class-extends.md
This commit is contained in:
Ruan YiFeng
2022-02-05 17:37:02 +08:00
committed by GitHub
+1 -1
View File
@@ -136,7 +136,7 @@ B.hello() // hello world
上面代码中,`hello()``A`类的静态方法,`B`继承`A`,也继承了`A`的静态方法。
子类无法继承父类的私有属性,或者说,私有属性只能在定义它的 clss 里面使用。
子类无法继承父类的私有属性,或者说,私有属性只能在定义它的 class 里面使用。
```javascript
class Foo {