I have two classes, ImageMap, extending ImageView and PageView extending GLSurfaceView, I am using the ImageMap to mainly have hot spots on drawables but I also need to add a page flip/curl animation to it, in order to do that I need those two classes to act as one object, any idea how to do that?
It is totally clear to me that multiple inheritance is not allowed in java.
There is no way of really extend two classes. What you can do is:
this.ImageMap.filed1
and so. This is more convenient while developing the class. This also allows you to proxy method invocations.You may need both things, since the first is about "how to do it" and the second about "how it will be presented to objects that use it".