(Click here for a personal note from Marshall Cline.)
/ FAQ 7.8
What is a class?
What is an object?
When is an interface "good"?
What is encapsulation?
How does C++ help with the tradeoff of safety vs. usability?
How can I prevent other programmers from violating encapsulation by seeing the
parts of my class?
Can a method directly access the non-
members of another instance of its class?
Is Encapsulation a Security device?
What's the difference between the keywords
E-mail the author
About the author
Revised Jul 4, 2012
[7.8] Is Encapsulation a Security device?
Encapsulation prevents mistakes, not espionage.