...
C++ Secure Coding Standard: OOP00-CPP. Declare data members private
Bibliography
Wiki Markup |
---|
\[[JLS 2006|AA. Bibliography#JLS 06]\] Section 6.6, Access Control
\[[SCG 2007|AA. Bibliography#SCG 07]\] Guideline 3-2 Define wrapper methods around modifiable internal state |
Bibliography
Wiki Markup |
---|
\[[JLS 2006|AA. Bibliography#JLS 06]\] Section 6.6, Access Control
\[[Long 2005|AA. Bibliography#Long 05]\] Section 2.2, Public Fields
\[[Bloch 2008|AA. Bibliography#Bloch 08]\] Items 13: Minimize the accessibility of classes and members; 14: In public classes, use accessor methods, not public fields |
...