Scala, Design Patterns, Programming, Delegation, Coding.
Sound class. Although this it’s a crude example, it exemplifies the problems with a bad use of inheritance that could arise in real world applications. This conjunction of code reuse and polymorphism at the same time through inheritance in object oriented languages it’s what leads to inheritance