GET/SET in C++ - CodeGuru Forums
I usually only use Get/Set functions when the value(s) needs validation. For example, say you have a 3d point class that encapsulates an xyz coordinate trio. There can be no invalid value for assignment here so being public is ok. Now lets say we have a c...