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:
commit
b27028056c
@ -136,7 +136,7 @@ B.hello() // hello world
|
||||
|
||||
上面代码中,`hello()`是`A`类的静态方法,`B`继承`A`,也继承了`A`的静态方法。
|
||||
|
||||
子类无法继承父类的私有属性,或者说,私有属性只能在定义它的 clss 里面使用。
|
||||
子类无法继承父类的私有属性,或者说,私有属性只能在定义它的 class 里面使用。
|
||||
|
||||
```javascript
|
||||
class Foo {
|
||||
|
Loading…
x
Reference in New Issue
Block a user