I have a class A that needs to extend classes B and C, which are both provided by a third party, and I do not control them. Because Java does not support multiple inheritance. Using the interface would not help in my case, since I want to inherit the implementation of the base classes, and I do not want to copy their code into my class, or I need to know all their coming changes.
What would be the best way to accomplish this task?
All suggestions will be highly appreciated!
java inheritance interface abstract-class multiple-inheritance
Green ho
source share