Computer Applications
Give two differences between Data Hiding and Encapsulation.
OOP Intro Java
24 Likes
Answer
Two differences between Data Hiding and Encapsulation are as follows:
- Data hiding focuses more on data security whereas, encapsulation focuses more on hiding the complexity of the system.
- Data hiding focuses on restricting the use of data whereas, encapsulation deals with wrapping of data and functions.
Answered By
14 Likes