Get Answers to all your Questions

header-bg qa

Differentiate between data abstraction and data hiding

Answers (1)

best_answer

Data hiding is the method that is used to hide the data of a class from the outside world. This is done so that the data is saved from any accidental or intentional access. This is done by making the members of the class private.

Data abstraction means providing only the essential information to the outside world while hiding the background details.

Posted by

Deependra Verma

View full answer