Computer Applications
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.
Related Questions
Give an example to explain Data Abstraction.
What is meant by Data Hiding?
'Encapsulation reduces the complexity and makes the system easier'. Explain this statement with a real world example.
Give two differences between Procedure Oriented Programming languages and Object Oriented Programming languages.