Encapsulation
Encapsulation is the packing of data andfunctions into one component (for example, aclass) and then controlling access to that component to make a "blackbox" out of theobject. Because of this, a user of that class only needs to know its interface (that is, the data and functions exposed outside the class), not the hidden implementation.
In this article
See also
- Encapsulation on Wikipedia