Data Abstraction and Encapsulation
The wrapping up of data and functions into a single unit (called c1ass) is known as encapsulation. Data encapsulation is the most strilting feature of a class. The data is notaccessible to the outside world, and only those functions which are wrapped in the class can access it. These functions provide the interface between the object's data and the program.
This insulation of the data from direct access by the program is called data hiding or information hiding.

The functions that operate on these data are sometimes called methods or member functions.
Since the classes use the concept of data abstraction, they are known as Abstract Data Types (ADT).
Comments
Post a Comment