0

basic diff b/w encapsulation and data hiding

24th Aug 2016, 7:16 PM
ABHISHEK GOEL
ABHISHEK GOEL - avatar
3 Réponses
+ 1
for particular modules or any section
5th Nov 2016, 11:39 AM
AMAN PUNDIR
AMAN PUNDIR - avatar
0
Data hiding is a much broader notion than encapsulation. It refers to the fact that those parts of a computer program that may change must not be accessible from other modules/clients. Encapsulation is a term that is found in Object-Oriented programming and refers to keeping the data in private fields and modifying it only through methods. In Summary [Encapsulation may be seen as a way of achieving data hiding.]
24th Aug 2016, 8:00 PM
SoloCoder
0
encapsulation is the binding the data and function in single unit while data hiding is only accessible for
5th Nov 2016, 11:38 AM
AMAN PUNDIR
AMAN PUNDIR - avatar