Give two differences between Data Hiding and Encapsulation.

Short Answer
Views 28

Answer:

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.

Related Articles:

This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.

Join Our telegram group to ask Questions

Click below button to join our groups.