Tuesday, 17 April 2012

How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)? | C++

Encapsulation only hides the details of the implementation from users of the data type, and provides a public user interface. Encapsulation only maintains the integrity of the internal coding inside the methods of a class, but not able to prevent accessing the private or protected parts of a class by the user.

No comments: