I\'m a total newbie with tons of ?\'s in my mind and a lot to experience with C++ yet! There\'s been something which I find really confusing and it\'s the use of public vari
I agree, in part, with the other answers regarding the use of getter and setter methods to allow for future changes but there is still a fundamental problem, you are exposing the internal data of your object for other objects to modify.
It is better to ask the object to perform some action on the data it holds, via a method, rather than treat the object as a collection of values.
Here's an interesting article on Why Getter and Setter Methods are Evil, it's written with Java in mind but the same applies to C++.