Scala, Design Patterns, Programming, Delegation, Coding.
${burkSound.obSound}") override def toString: String = s"Fox ${name} on location ${location.x}, ${location.y}" def movDirection(x: Int, y: Int) = {this.location = movAnimal.movDirection(location, x, y)} } class Sponge(override val name: String, override var location: Location) extends Animal {