1. Immutable & Mutable - Val vs Var
1. Kotlin Val val : read-only variable (like final), Not re-assign, 따라서 선언과 동시에 값을 가져야 한다. 2. Kotlin Var var: mutable variable, 따라서 var의 value는 변경 가능 3. Kotlin Val & Var with Object's properties1과 2와 동일 [Sample Code-1] 1234567891011121314data class Customer(val id: Int, var name: String) fun main(args : Array) { val cust = Customer(1, "Jack") println("cust = $cust") // cust = Customer(id=1, name..