itselfs -> itself
This commit is contained in:
parent
52f899a1af
commit
8a9d97a7f9
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ machine.waterAmount = 100;
|
||||||
alert(machine.#waterAmount); // Error
|
alert(machine.#waterAmount); // Error
|
||||||
```
|
```
|
||||||
|
|
||||||
Unlike protected ones, private fields are enforced by the language itselfs. That's a good thing.
|
Unlike protected ones, private fields are enforced by the language itself. That's a good thing.
|
||||||
|
|
||||||
But if we inherit from `CoffeeMachine`, then we'll have no direct access to `#waterAmount`. We'll need to rely on `waterAmount` getter/setter:
|
But if we inherit from `CoffeeMachine`, then we'll have no direct access to `#waterAmount`. We'll need to rely on `waterAmount` getter/setter:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue