72.3k views
3 votes
Items in the __________ area of a class are accessible to all entities that can "see" the object(s) of that class type

User Sunxd
by
8.3k points

1 Answer

1 vote
Classes have three areas, (public, private and protected)

"public area" of a class is accessible to all entities that can "see" the object(s) of that class type (accessible in and out)

"private area" of a class is accessible to only within that class, i.e. cannot access them from outside the class (accessible in)

"protected area" of a class is accessible to all entities that can "see" the object(s) of that class type (accessible in and "out with some conditions")
User Vimfluencer
by
7.9k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.