Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyKotlindata classesSingle-choice MCQ

What does destructuring a data class rely on under the hood?

data class User(val name: String, val age: Int) val (name, age) = User("Ada", 36) println("$name is $age")