Scala, Design Patterns, Programming, Delegation, Coding.
class Fox(override val name: String, override var location: Location) extends Animal { override 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