encapsulation is the wrapping up of data members and data functions into a single unit like classes. here we can control the visibility of data with the help of access specifiers i.e. public,private and protected.
in data hiding data is totally private we cannot access the data.
Answered by: shrimanta on: Mar 14th, 2012
encapsulation is the concept of the datamember. Data Hiding is the Access Specifier.
encapsulation is the wrapping up of data members and data functions into a single unit like classes. here we can control the visibility of data with the help of access specifiers i.e. public,private and protected.
in data hiding data is totally private we cannot access the data.
encapsulation is the concept of the datamember. Data Hiding is the Access Specifier.