Explain Data Hiding with respect to OOP.
Answers
Answered by
2
Abstraction - act of representing only essential features without giving any background details or explantations.
Answered by
6
☞ Data hiding can be defined as the mechanism of hiding the data of a class from the outside world or to be precise, from other classes.
☞ Data hiding is achieved by making the members of the class private. Access to private members is restricted and is only available to the member functions of the same class. However the public part of the object is accessible outside the class.
── ❖ ── ✦ ── ❖ ───── ❖ ── ✦ ── ❖ ──End.
彡★Thank you for Asking★彡
↝Note:[There are more such questions which are already answerd, Don't forget to check the profile.]
Similar questions