From 47e46895f264efc0acb9c5d5a691e90a17a5ee77 Mon Sep 17 00:00:00 2001 From: Sasha Date: Fri, 6 Dec 2019 17:31:19 +0200 Subject: [PATCH 1/3] Fix incorrect link address --- .../04-private-protected-properties-methods/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/09-classes/04-private-protected-properties-methods/article.md b/1-js/09-classes/04-private-protected-properties-methods/article.md index 6d77e8ed..60ed0ef1 100644 --- a/1-js/09-classes/04-private-protected-properties-methods/article.md +++ b/1-js/09-classes/04-private-protected-properties-methods/article.md @@ -279,7 +279,7 @@ With private fields that's impossible: `this['#name']` doesn't work. That's a sy ## Summary -In terms of OOP, delimiting of the internal interface from the external one is called [encapsulation]("https://en.wikipedia.org/wiki/Encapsulation_(computer_programming)"). +In terms of OOP, delimiting of the internal interface from the external one is called [encapsulation](https://en.wikipedia.org/wiki/Encapsulation_(computer_programming)). It gives the following benefits: From 1516ce9acdd04449a0182f7b9056b1234efcc5d2 Mon Sep 17 00:00:00 2001 From: Sasha Date: Thu, 12 Dec 2019 18:44:56 +0200 Subject: [PATCH 2/3] Added extra space --- .../04-private-protected-properties-methods/article.md | 1 + 1 file changed, 1 insertion(+) diff --git a/1-js/09-classes/04-private-protected-properties-methods/article.md b/1-js/09-classes/04-private-protected-properties-methods/article.md index 60ed0ef1..37e81656 100644 --- a/1-js/09-classes/04-private-protected-properties-methods/article.md +++ b/1-js/09-classes/04-private-protected-properties-methods/article.md @@ -281,6 +281,7 @@ With private fields that's impossible: `this['#name']` doesn't work. That's a sy In terms of OOP, delimiting of the internal interface from the external one is called [encapsulation](https://en.wikipedia.org/wiki/Encapsulation_(computer_programming)). + It gives the following benefits: Protection for users, so that they don't shoot themselves in the foot From e09a55ac69ec583e42af815002ab9b626ddd23af Mon Sep 17 00:00:00 2001 From: Alexey Pyltsyn Date: Thu, 19 Dec 2019 23:05:48 +0300 Subject: [PATCH 3/3] Update article.md --- .../04-private-protected-properties-methods/article.md | 1 - 1 file changed, 1 deletion(-) diff --git a/1-js/09-classes/04-private-protected-properties-methods/article.md b/1-js/09-classes/04-private-protected-properties-methods/article.md index 37e81656..60ed0ef1 100644 --- a/1-js/09-classes/04-private-protected-properties-methods/article.md +++ b/1-js/09-classes/04-private-protected-properties-methods/article.md @@ -281,7 +281,6 @@ With private fields that's impossible: `this['#name']` doesn't work. That's a sy In terms of OOP, delimiting of the internal interface from the external one is called [encapsulation](https://en.wikipedia.org/wiki/Encapsulation_(computer_programming)). - It gives the following benefits: Protection for users, so that they don't shoot themselves in the foot