Scala, Design Patterns, Programming, Delegation, Coding.
y: Int) = { this.location = Location(this.location.x + x, this.location.y +y) } def makeSound(burkSound: BurkSound): Unit def toString: String } case class Location(x: Int, y: Int) abstract class AnimalSound { val obSound: String } class BurkSound extends AnimalSound { val obSound: String =