Difference between Data Encapsulation vs Abstraction


Encapsulation has two faces; data abstraction and information hiding. Data abstraction is a type seen from the outside. Information hiding is a type seen from the inside. Sometime encapsulation is used to mean information hiding only but I think the definition I gave is better because if you encapsulate something you get both an inside … More Difference between Data Encapsulation vs Abstraction