Take two base classes A and B, which are similar, but preferable to distinguish. Each of them has a subclass (A 'and B') that adds the same functionality and members to their respective classes. Is there a design pattern that allows me not to duplicate code in 'and B'?
I looked at Bridgeand Decorator, but I do not see how they will work.
Thanks Rob
source
share