title: When do I use super()?
body: <p>I'm currently learning about class inheritance in my Java course and I don't understand when to use the <code>super()</code> call?</p>
  
  <p>Edit:<br>
  I found this example of code where <code>super.<em>variable</em></code> is used:</p>
  
  <pre><code>class A
  {
      int k = 10;
  }
  
  class Test extends A
  {
      public void m() {
          System.out.println(super.k);
      }
  }
  </code></pre>
  
  <p>So I understand that here, you must use <code>super</code> to access the <code>k</code> variable in the super-class. However, in any other case, what does <code>super();</code> do? On its own?</p>