Data encapsulation refers to the encapsulation of a data structure and the implementation of the operations applicable to it. An encapsulated data structure has an interface with the operations that can be accessed from the outside. All access to the stored data
takes place exclusively via the operations of this interface. Encapsulated data structures are often created as instances of abstract data types. In object-oriented programming, the objects form the units of data encapsulation.