Scala, Design Patterns, Programming, Delegation, Coding.
SpongeSound for the implementation of the concrete sounds of the animals and MovAnimal for the implementation of the movDirection method that the Fox and Dog classes provides. A more comprehensibility code is obtained, and extensibility, maintenance and troubleshooting are easier, with a less prone