Private access allows only objects of the same class to access it. However, is there any way to restrict class members such that only the owner object - and no others regardless of class - has access to it?
As an analogy to real world objects, your butt is private to yourself, and no one else should have access to your butt without your permission just because he/she is a fellow human. Is there a way to implement this in code?
Note: This is a general question, but since I will be using both Java and C++ at work, I would like to see how this can be implemented in each language.