Composition is the process of combining, or composing, parts of a program into a larger program.
In Scala, I've seen the constructs trait T extends S and trait T { this: S => used to achieve similar …
scala composition traits self-typeWhile designing my objects I find composition to be a better choice from the perspective of testability. The reason being, …
inheritance composition testability