case class Person(
name: String,
age: Int = 0
)
val tom = Preson("Tom", 20) // (name="Tom", age=20)
val jack = Person(name="Jack") // (name="Jack", age=0)
val jack2 = jack.copy(age=22) // (name="Jack", age=22)
case class
側copy
object
側tupled
unapply