Re:Love this essay, I still can't (don't want to) find an ap...
by kingkongrevenge on Saturday June 16, 2007 @08:23PM
(#28604)
"It is more readable and understandable if an object only exposes the methods that it's user needs."
This sort of encapsulation is not specific to OO. You can hide data and methods within modules without using classes. In C++ terms you use anonymous namespaces. In C, perl, python(?) and other languages a leading underscore or "static" declaration conveys encapsulation, which is good enough as far as I'm concerned.
I think in Java you actually can access the private methods of an object via Reflection, if you absolutely want to.