数据类和多重声明

Component函数被数据类生成用来在多重声明中使用:

val jane = User("Jane", 35)
val (name, age) = jane
println("$name, $age years of age")

results matching ""

    No results matching ""