-
The friendly control makes the data visible in the same packages while i.e. to all classes and sub classes in the same packages.
But it does not allow the other packages access the fields of the class.
The Private control makes the data visible to only the functions of the same class. No any function of the other classes, while in the same package can access the fields of the this class in this condition.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks