Scala, Design Patterns, Programming, Delegation, Coding.
Location(this.location.x + x, this.location.y + y) } def makeSound(burkSound: BurkSound) = System.out.println(s"Fox ${name} made ${burkSound.obSound}") override def toString: String = s"Fox ${name} on location ${location.x}, ${location.y}" } object TestNonPolymorphism extends App { val dog: Dog =