Questions in the comments, please help me,thanks
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