1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

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
commit b27028056c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,7 @@ B.hello() // hello world
上面代码中,`hello()``A`类的静态方法,`B`继承`A`,也继承了`A`的静态方法。
子类无法继承父类的私有属性,或者说,私有属性只能在定义它的 clss 里面使用。
子类无法继承父类的私有属性,或者说,私有属性只能在定义它的 class 里面使用。
```javascript
class Foo {