Java: Alternative to Multiple inheritance
问题 I have a class A that has to extend class B and C which are both provided by 3rd party and I don't have a control of them. Since Java doesn't support multiple inheritance. Using interface wouldn't help in my case since I do want to inherit the base classes' implementation and I don't want to copy their code over to my class, or I'll need to be aware of all their coming changes. What would be the best way to accomplish this need? All suggestion will be much appreciated! 回答1: class A class B2