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
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@
59
59
60
60
حالا در جاوااسکریپت یک قهوهساز همراه با انواع ویژگی خواهیم ساخت. یک قهوهساز جزئیات زیادی دارد، ما برای ساده بودن آنها را مدلسازی نمیکنیم (اگرچه میتوانستیم).
61
61
62
-
## ویژگی "waterAmount" محافظتشده
62
+
## فیلد "waterAmount" محافظتشده
63
63
64
64
بیایید یک کلاس ساده قهوهساز ایجاد کنیم:
65
65
@@ -184,7 +184,7 @@ new CoffeeMachine().setWaterAmount(100);
184
184
پس فیلدهای محافظتشده به طور طبیعی قابل ارثبری هستند. برخلاف فیلدهای خصوصی که پایین خواهیم دید.
0 commit comments