Item 22: Declare Data Members private

To maintain class invariants. And protected is not more encapsulated than public.

Creative Commons License
This blog by Che-Liang Chiou is licensed under a Creative Commons Attribution 4.0 International License.