Learn Kotlin for Android: Constructors & Init (Lesson 15)

preview_player
Показать описание
So the primary constructor is used to initialise values immediately, and the init block is used to expand on that and introduce additional initialisations or to add some more logic to your constructor.

I know I spoke a bit fast in this video, so please feel free to leave any questions or confusions in the comment section below, and I'll do my best to answer them.
​​​​
Рекомендации по теме