java - use of extend
<p>I am trying to understand the use of extend in Java.</p>

<p>from this code:</p>

<p>There is a superclass with a printMethode</p>

<p>Here is a subclass, called Subclass, that overrides printMethod():</p>

<pre><code>public class Subclass extends Superclass {

    // overrides printMethod in Superclass
    public void printMethod() {
        super.printMethod();
        System.out.println("Printed in Subclass");
    }
}
</code></pre>

<ol>
<li><p>Can we use to extend the printMethod, without the super?</p>

<pre><code>@Override 
public void printMethod() {
    System.out.println("Printed in Subclass");
}
</code></pre></li>
<li><p>what is the use of <code>super.printMethod()</code> in the body of the extended printMethod ?</p></li>
</ol>

<p>Cheers</p>
