I would have a class hierarchy like in photo.
Usually in this case it's usefull pattern Decorator in Java, but with MapActivity is not possible, how can i do?
I would have a class hierarchy like in photo.
Usually in this case it's usefull pattern Decorator in Java, but with MapActivity is not possible, how can i do?
You cannot "do". As you say, it is impossible in Java.
You can switch to composition instead of inheritance, and move the logic from AbstractMyActivity into something that a MapActivity can also hold onto.