Scala, Design Patterns, Programming, Delegation, Coding.
Animal { private val burkSound = new BurkSound private val movAnimal = new MovAnimal override def makeSound() = System.out.println(s"Dog ${name} made ${burkSound.obSound}") override def toString: String = s"Dog ${name} on location ${location.x}, ${location.y}" def movDirection(x: Int, y: Int): Unit