[beginning-scala-programming] Trait


trait

trait Character {
     val name: String
     val items: List[Item]
     val currentRoom: String
}

case class Player(name: String, items:List[Item], currentRoom:String) extends Characters {

}

참고 : scala-exercies

참고 : 스칼라스쿨