Using superclass to initialise a subclass object java
<pre><code>SuperClass object = new SubClass();
</code></pre>

<p>Why use a superclass to instantiate a subclass object like above? Because the only way i learnt to instantiate an object is to: </p>

<pre><code>SubClass object = new SubClass();
</code></pre>

<p>I'm learning java.</p>
