Bypass multiple inheritance in Java
问题 I think that there's a solution to my inheritance problem but I can't find it. I'm developing an Android application (target is Android 2.1) which reuses a SlidingDrawer (for my menu) on most of the pages. In order to avoid to initialize it on all the Activity I created a DefaultActivity to do so. It worked well until I had to extends TabActivity because Java doesn't support multiple inheritance. Basically I have the following Default activity public class DefaultActivity extends Activity{ //