Hacker News new | ask | show | jobs
by kendalf89 1081 days ago
I would have thought that encapsulation hides the way data is processed, stored, and moved around. But the data itself is always available in my experience.
1 comments

Suppose the data is in a private field of an object deep in the object graph. How do you get it? You can't, by design - that object's public interface may expose some aspects of the data, but you're not meant to access the actual raw data.