0
basic diff b/w encapsulation and data hiding
3 Réponses
+ 1
for particular modules or any section
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.]
0
encapsulation is the binding the data and function in single unit while data hiding is only accessible for