Privacy is used to hide implementation from the user of a class.
You needn't worry about Object-level privacy because you (the Object's author) are the only one that has access to the internals of the Object.
It does, of course, mean that you can shoot yourself in the foot (as you did with the second divide implementation). But, assuming you write the class correctly, no one can programmatically change the implementation. |