User(val name: String, val age: Int) // equals() ෆཁ // hashCode() ෆཁ // toString() ෆཁ ============== val jack = User(name = "Jack", age = 1) val olderJack = jack.copy(age = 2) // Destructing Declaration: ղએݴ val (name, age) = jack println("$name, $age years of age") //============== // data class͑͞ϝϯυͳਓʹɼ // Pair(A, B)ͱ͔Triple(A, B, C)͋Δ͚Ͳɼ // ϓϩύςΟ͕"first"ͱ͔"second"ͳͷͰඇਪ //============== ʻ֘ػೳͳ͠ʼ