// Kotlin class Foo(var title: String = "x") var title: String = "a" val foo = Foo().apply { title = "b" } println(title) println(foo.title)
apply
this