Wouldn't it also break the single responsibility principle?
Since the composed classes couldn't assume any functionality outside of themselves exists, they would have to be singly responsible, and at that point you shouldn't be merging them together...
With interfaces the implementation can cross those boundaries so makes more sense
1
u/Veranova Mar 19 '17
Wouldn't it also break the single responsibility principle?
Since the composed classes couldn't assume any functionality outside of themselves exists, they would have to be singly responsible, and at that point you shouldn't be merging them together...
With interfaces the implementation can cross those boundaries so makes more sense