I don't have to initialize a property right away i...
# getting-started
f
I don't have to initialize a property right away if I use
lateinit
or override the
getter
. Any other ways to get around immediate initialization? (It's a theoretical question)
n
does
by lazy
count? Which is a delegate 👇
👍 1
f
thank you I'll have to look up what that is
nothing else?
y
if you have a
val
you can initialize it inside the constructor (after some logic) so its kind of obrigatory lazy non lazy haha
f
I see, thanks a lot
they can also be initialized in
init
blocks, right?
If I put an init block directly under a property I can initialize it there
is there something similar for secondary constructors?
the difference to Java is confusing me so maybe what I write doesn't make much sense
Thanks, exactly what I wanted to know