Scala, Design Patterns, Programming, Delegation, Coding.
makeSound(burkSound: BurkSound) = System.out.println(s"Dog ${name} made ${burkSound.obSound}") override def toString: String = s"Dog ${name} on location ${location.x}, ${location.y}" } class Fox(val name: String, var location: Location) { def movDirection(x: Int, y: Int) = { this.location =