Possible Duplicate:When are Getters and Setters Justified Is it a good programming practice to not use getters and setters in trivial parts of code?  
Is it a good programming practice to not use getters and setters in trivial parts of code?
programming languages