On Saturday, 19 May 2018 at 09:37:56 UTC, Uknown wrote:

The point was encapsulation as you defined it was broken. private members were directly modified outside their class. In your words, everyone was a friend.

This is why we have coding standards ;-)

https://www.nccgroup.trust/globalassets/our-research/us/whitepapers/2017/april/accessing-private-fields-outside-of-classes-in-java.pdf

Reply via email to