As we know that Data Encapsulation Means to Hide the Data From the other users, as we known that c++ provides us the Concept of inheritance in which we can use the Existing Code.
Which is previously defined? But that Existing Code must be declared as Public, Many Times a User Declares his Data by using Private, then we can’t access that Data which is Declared as Private So Encapsulation allows and Defines in which Place we can use the Code. So that Data Encapsulation uses the Following Access Modifiers.
Dinesh Thakur is a Columinist and designer with strong passion and founder
of Computer Notes. if you have any ideas or any request please get @me on Google+
![]()