title: Use public getters/setters to access private variables in the same class, or access the variables directly
body: <p>I am studying programming and although I feel like I have good knowledge in programming (been writing PHP, Javascript etc for years), I've never dived into the world of OOP. Because of this I am asking for a general answer for the situation I am in. I know that there always will be some exceptions, but I am looking for the most correct approach in this case.</p>
  
  <p>Ok, so I have two classes, <code>Game</code> and <code>GameGraphics</code>. <code>GameGraphics</code> will create an object of <code>Game</code> and use all the methods it has. We recently learned that all variables a class should be private, so all the variables in <code>Game</code> are accessed by <code>GameGraphics</code> through getters and setters.</p>
  
  <p>But, when I want to access the variables of <code>Game</code> inside the <code>Game</code> class, should I use the public methods, or just access the variables directly? What is the most correct approach to this?</p>
  
  <p>I'm developing in Java, if that matters. And please excuse my lack of OOP-experience.</p>