About field init

Questions in the comments, please help me,thanks
qxlarge-dsc-C196AAEFBC0131848F2BAFC399CAAEA0

It’s explained in the documentation: Classes | Kotlin Documentation

Primary constructor parameters can be used in the initializer blocks. They can also be used in property initializers declared in the class body

1 Like