Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
What is the main difference between private and protected
what is the areas of access of aboves
1 ответ
+ 11
Private objects/methods can only be accessed by the class itself, whereas protected objects/methods can be accessed by the class itself and its derived classes (via inheritance).