Never Export POD

POD (plain-old data) classes should never be exported (public or protected); use getter/setter instead.

However, it is fine to use POD classes for implementation (private or package-private).

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