Java inheriting from two classes
<p>I'm using an interface in java, pdj, that comunicates my classes with PureData. In order to do so, my classes have to extend a given class (MaxObject). While designing my class, which is a cirular buffer, I have found out I need to extend java's Iterator class. So I have to extend two classes at the same time.</p>

<p>My guess is that the only solution is to create two different classes and let one of them be a component of the other one. But, is it the only solution? is it the best one?</p>

<p>Further, whenever I find myself needing inherit from two classes, is it a because of a bad design? Is there a design pattern to solve this class?</p>

<p>Thank you</p>
