Scala, Design Patterns, Programming, Delegation, Coding.
fox.movDirection(1, 1) System.out.println(fox.toString) } The traits Animal and AnimalSound are given for providing a common interface, with just the method signature needed for all the concrete subtypes of them. Reuse of code is managed through the delegate pattern by using BurkSound and