What is the difference between Data hiding and Data Abstraction ??
Answers
Answered by
1
Abstraction and Data hiding are the crucial concepts of the object-oriented programming. Abstraction is a method of expressing the important properties without involving the background details. On the other hand, Data hiding insulates the data from the straight access by the program. Although, both the concepts sound similar in the sense but are different. The abstraction provides a way to create user-defined data types for designing real-world objects having same properties. As against data hiding protects the data and function from the unauthorized access.
Similar questions