TOP
NOTES EFFECTIVE C++
Item 22: Declare Data Members private
To maintain class invariants. And
protected
is not more encapsulated than
public
.
This blog
by
Che-Liang Chiou
is licensed under a
Creative Commons Attribution 4.0 International License
.