Kotlin Discussions
Why open property is initialized in superclass even when it is overrided by a subclass?
Language Design
Psijic
October 17, 2022, 6:53pm
6
But why doesn’t compiler know the child has a parent?
Override init in a parent class
show post in topic
Related topics
Topic
Replies
Views
Activity
Why can't we override a val property as a var with a get without initialising it?
Support
2
8226
December 31, 2017
Override getter force to override setter too
Language Design
6
11879
February 2, 2018
Override init in a parent class
Support
2
2150
October 24, 2022
Is open modifier needed for accessing properties in super class?
5
1403
May 5, 2015
Open overriden properties serialization
Libraries
0
1355
July 20, 2022