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.