What is Data hiding or Information Hiding?

Data hiding means hiding class data which is also known as Member data from outside classes. C++ uses access modifiers and encapsulation to implement Data hiding. For eg; Data declared in private section is not accessible to other classes. Whereas data declared in protected section is also not accessible to other classes except the Derived class.

More Questions

Leave a Reply

Word Verfication * Time limit is exhausted. Please reload CAPTCHA.