the situation is this: I use "BaseClass" with some standard functions (for example, a standard menu generator), and all other actions "expand" it to get the same menu and other things:
public class Base extends Activity {
then
public class MainActivity extends Base {
The problem arises when I need the same functions in the Preferences activity, when the class should "extend" PreferenceActivity, and not the standard one. How do I deal with this? Ive read about the "implements vs extends" behavior and the like, but Im not very experienced at OOP to handle this and find a better solution. C & P-ing from the Base to Prefs class, which extends PreferenceActivity, seems to solve the problem, but it is by far the worst solution.
Thanks in advance for your help!
source share