Getting functionality from two classes
<p>Say I have an abstract class A and an abstract class B:</p>

<pre><code>abstract class A {
    public void doA(){
        //some stuff
    }
}

abstract class B{
    public void doB(){
        //some stuff
    }
}
</code></pre>

<p>Now I want to accomplish the following situation:</p>

<p>class <code>C</code> has functionality of <strong>just</strong> <code>A</code><br>
class <code>D</code> has functionality of <strong>just</strong> <code>B</code><br>
class <code>E</code> has functionality of <strong>both</strong> <code>A</code> and <code>B</code>.  </p>

<p>How would I do that? Is that even possible in java, because one cannot extend multiple classes?</p>
