Hi All, how is overriding properties with a backing field handled? Does the overridden property reuse the backing field of it's parent class? Or does it shadow it?
g
gian
01/09/2020, 2:01 PM
You could try looking at the generated kotlin bytecode. In IDEA: Tools > Kotlin > Show Kotlin Bytecode
u
uli
01/10/2020, 9:08 AM
Well, it shadows the original property. But all access goes through the getters/setters which access the overridden property rendering the shadowed property (parent class's property) unused.