an class="hljs-keyword">task</span>.doIt();&nbsp;<span class="hljs-comment">// It's OK<br /></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="hljs-keyword">task</span>.redoIt(); <span class="hljs-comment">// Compile-time error!<br /></span>&nbsp; &nbsp; &nbsp;}<br />
	  }</code></p>

            <p>The program will fail. The reference doesn't know about the method <code>redoIt()</code> because it's not defined in the superclass.</p>

            <p>Typically, you would cast the type to the subclass wher