From 52f899a1afbe7ba698f8105af0f68f7d560ddfc9 Mon Sep 17 00:00:00 2001 From: dragonwocky Date: Tue, 16 Apr 2019 14:58:48 +1000 Subject: [PATCH] inheret -> inherit --- .../05-private-protected-properties-methods/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/09-classes/05-private-protected-properties-methods/article.md b/1-js/09-classes/05-private-protected-properties-methods/article.md index 68963513..90d41e65 100644 --- a/1-js/09-classes/05-private-protected-properties-methods/article.md +++ b/1-js/09-classes/05-private-protected-properties-methods/article.md @@ -230,7 +230,7 @@ coffeeMachine.#waterLimit = 1000; // Error coffeeMachine.waterAmount = 100; // Works ``` -On the language level, `#` is a special sign that the field is private. We can't access it from outside or from inhereting classes. +On the language level, `#` is a special sign that the field is private. We can't access it from outside or from inheriting classes. Private fields do not conflict with public ones. We can have both private `#waterAmount` and public `waterAmount` fields at the same time.