I have this simple class composition: ``` data cla...
# getting-started
p
I have this simple class composition:
Copy code
data class Account(a: Int, b: Int)
Copy code
data class Person(name:String, account:Account)
is there a way to expose account's properties on person? anything better than:
Copy code
val a get() = account.a
?
a
val a = account.a
? I'm not sure what delegation gives you any advantage