The wraping up of data and function into a single unit(called class)is known as encapsulation.

DATA encapsulation is the most striking feature of a class.the data is not accssible to the outside world.and only those functions which are wrapped in the class can access it.there functions provide the interface between the objects data and the program this insulation of the data from direct access by the program is called data hiding or information hiding.

Average Rating (0)
by Sarang   Bhavsar  in C++  on 7/7/2015 2:26:04 AM  

Post Your Comment