How do I extend a class?
<p>I have a class: <code>Model</code>, with many functions, such as <code>draw()</code>, <code>rotate()</code> etc.</p>

<p>now i have another class called <code>Cube</code> that i want to be able to work the same way as Model.</p>

<p>I have this in my <code>Cube</code> class constructor: </p>

<pre><code>Model m3d = new Model();        
m3d.build(obj);
</code></pre>

<p>So what i want is to be able to in another class call something like:</p>

<pre><code>mCube.draw();
</code></pre>

<p>and <code>m3d</code> will perform <code>draw()</code>.</p>
