NEVER again in C++ (reminder for myself)
It’s something i have to remember from now on.
- Never, and i repeat never make data member public, doesn’t matter how small and insignificant the class is.
- Even if you *know* that the class will never change and you are too lazy to write and use mutators and accessors - look item 1
Why? Just wait till you have to change that code.
Technorati Tags: c++, oop, programming

