Hi All, how is overriding properties with a backin...
# announcements
u
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
You could try looking at the generated kotlin bytecode. In IDEA: Tools > Kotlin > Show Kotlin Bytecode
u
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.
b
it could be accessed via a super call