What is data hiding and Encapsulation?
Ankit Agarwal
hiding the internal details of an object is called datahiding or abstraction and encapsulation means is the process of binding the data members and functions into a single unit
Data Abstraction (data hiding) is a thinking process means that the developer should decide what information should show to outer world ,but the actual implementation of the Abstraction is nothing but the Encapsulation , which is achieved by using the access modifiers. you can say that the Encapsulation implements the Abstraction.
Data Abstration refers to data hiding as it act of represting essential features without including the background details or explanation, on the other hand Encapsulation is the wrapping up of data and functions into a single unit called as class.
data hiding means hide some important information of class from other class,method or object. abstraction is a mechanism which allow a class to make visible relevant information and hide unnecessary information. Encapsulation enable a programmer to implement a desired level of abstraction using access specifier...
http://programmers.stackexchange.com/questions/173547/what-is-the-difference-between-data-hiding-and-encapsulation
data hiding means hiding the internal details of an object and encapsulation means is the process of binding the data members and functions into a single unit.
Simplest example for a developer to explain is think how you define a class with comparison to c++.
data hiding means hiding the internal details of an object and encapsulation means wrapping of data and code into single unit