Possible Duplicate:
Why use getters and setters?
It seems to me like a major hassle to write accessor and mutator methods, particularly when dealing with very simple attributes. Why should I bother using them?
The answer mainly depends on what are you writing code for and how much you trust yourself if working alone:
friend
directive that allows fine grain encapsulation without the bother of having setters and getters (even if it encourages coupling so there are two different schools of thinking here)