You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/09-classes/04-private-protected-properties-methods/article.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -281,6 +281,7 @@ With private fields that's impossible: `this['#name']` doesn't work. That's a sy
281
281
282
282
In terms of OOP, delimiting of the internal interface from the external one is called [encapsulation](https://en.wikipedia.org/wiki/Encapsulation_(computer_programming)).
283
283
284
+
284
285
It gives the following benefits:
285
286
286
287
Protection for users, so that they don't shoot themselves in the foot
0 commit comments