3 ms·
Then you don't understand composition. I can pass the actual implementation in the constructor or via dependency injection. With multiple inheritance, your clas
by danieldk 12y ago
Then you don't understand composition. I can pass the actual implementation in the constructor or via dependency injection. With multiple inheritance, your class is restricted to one implementation. Moreover, it couples the class with the internals of observables, rather than using simple interfaces, which composition provides.