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
Top-level property initialization: when does it happen?
Language Design
1
3757
September 11, 2020
Why can't we override a val property as a var with a get without initialising it?
Support
2
7961
December 31, 2017
Initialization of delegated properties
Support
5
1164
March 22, 2023
Is open modifier needed for accessing properties in super class?
5
1333
May 5, 2015
Default property initialization for interfaces
7
25083
April 8, 2021