We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I have a question about general practice. When accessing variables in objects, is it bad practice to access them directly (
object.variable) compared to creating get methods to access them (
object.getVariable())? How do both techniques differ and how can it affect the quality or maintenance of a program?