title: Is there a difference between super.getX() and simply x?
body: <p>I have a class that has a protected value <code>x</code> and I have another class that extends that class.</p>
  <p>In the extended class is there any difference between <code>return super.getX()</code> and <code>return x</code>?</p>
  <p>They both can visibly see the variable right? and I was under the impression that the values were exactly the same so is there a reason that my professor said to use <code>super.getX()</code> instead of just returning <code>x</code>?</p>
  <p>example:</p>
  <pre><code>public int getX(){
      return x;
  }
  </code></pre>
  <p>vs</p>
  <pre><code>public int getX(){
      return super.getX();
  }
  </code></pre>
  <p>The reason for why I have 2 <code>getX</code> methods is because the extended <code>getX</code> does checks and applies manipulations to the value <code>x</code> depending on other values.</p>