Tuesday, December 15, 2015

Data Hiding / Information Hiding


   >>> As encapsulation bind data and methods together data hiding restrict sensitive data accessing to the system.

   >>> An encapsulation tells, the data is not accessible 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 on the data from direct access by the program is call data hiding.

   >>> Insulation of data from direct access by the program.

   >>> It is also achieved by using access by the program.

   >>> It is also achieved by using access modifiers i.e. Private, Protected and Public.

  

1 comment: