How a class can extend with two different classes While one class is from a external library and other is built in
<p>I am using SherlockActionBar library in my project.And my class is extending an abstract class  SherlockActivity </p>

<pre><code>public class AllAppsInfo extends SherlockActivity{}
</code></pre>

<p>In mean while i want to extend my AllAppsInfo with FragmentActivity as well.Which is not allowed due to negligence of multiple inheritance in java.</p>

<p>I have done some search, composition is the solution but how to use it in this Scenario? Neither i can make abstract Sherlock class a interface nor same be done with Fragment Activity class
. </p>
