Scala, Design Patterns, Programming, Delegation, Coding.
sponges don’t move by their own, and it would need to hide this inherited behavior as is not appropriate for its class. Furthermore the makeSound method is incompatible with the Sponge class as BurkSound is not the type of animalSound that sponges make. Programmers can be tempted to modify the