</ul>

            <p>But one thing you have to be careful with, is inheritance.</p>

            <p>When you use an anonymous class (a subclass object), you're using a superclass reference. With this reference, you can use the attributes and methods declared in that type.</p>

            <p>But what happens when you declare a new method on the anonymous class?</p>

            <p><code class="hljs"><span class="hljs-keyword">class</span> <span class="hljs-keyword">Task</span> {<br />
	  &nbsp; &nbsp; &nbs