Hard
Considering the User
class with 2 properties : name: String
and age: Int
.
val lucie = User("Lucie", 35)
val (name, age) = lucie
Using lucie
like this
Author: W3D TeamStatus: PublishedQuestion passed 564 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about Kotlin