Difference Between Data Hiding and Encapsulation

Computer ProgrammingProgrammingMiscellaneous

In this post, we will understand the difference between data hiding and encapsulation techniques.

Data hiding

  • It is associated with data security.

  • It also helps conceal the complexities of the application.

  • It focuses on hiding/restricting the data usage.

  • It is considered as a process and a technique.

  • This data is always private and inaccessible.


  • It can be defined as the wrapping up of data into a single module.

  • This will hide the complicated and confidential information about the application.

  • This encapsulated data can be private or public, depending on the requirement.

  • It is considered as a sub-process in the bigger process of data hiding.

Published on 24-Mar-2021 12:41:54