Home / Questions / Give two differences between Data Hiding and Encapsulation.
Explanatory Question

Give two differences between Data Hiding and Encapsulation.

👁 105 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

Two differences between Data Hiding and Encapsulation are as follows:

  1. Data hiding focuses more on data security whereas, encapsulation focuses more on hiding the complexity of the system.
  2. Data hiding focuses on restricting the use of data whereas, encapsulation deals with wrapping of data and functions.