I have a requirement to invoke two different methods from two different classes to my own class and those two classes are in two different .jar files provided by the vendors.
The scenario is something like below:
- abc.jar: public class A{ public void m1(){} }
- xyz.jar: public class B{ public void m2(){} }
My own class is MyClass{}. If I have to use those two methods in my class I need to extend both the classes, but since java does't support multiple Inheritance, I am not able to achieve it.
Please share if there is any other way to access both m1() & m2() methods in my class. Note: I have to extend the available functionalities and should customize the methods according to my requirement.