+ 1
What are private, public and protected access specifiers?
3 ответов
+ 10
protected is also called 'package private'. Can be accessed by all derived classes and by all classes inside the same package.
+ 7
*Private means thet this object can't be accessed outside of the class even if you derive its class.
*Public means that the object can be accessed outside the class and can be derived.
*Protected is Simillar to the private but when you derive a class to another the object can be accessed.
+ 2
i agree with ehab