ie, is it possible in the super class init block g...
# announcements
k
ie, is it possible in the super class init block get access to values that the child class has overriden?
h
The answer to that particular question is no. But you can simply make the property a constructor param in the abstract superclass instead of an abstract property. Possible for your use case?
k
thanks for the into! yeah, I might go with a constructor param for now, or maybe just a plain function to init the class if the number of parameters get's large...
h
Instead of init Blocks it is often better to not span a hierarchy if not necessary and make constructors private and use a factory. Especially when its sth like logging which is unrelated to the construction of the instance itself