Video Belajar
Tonton dan pelajari berbagai topik menarik melalui video pembelajaran eksklusif dari Channel Indently.
Indently
2086
Learn Kotlin for Android: Constructors & Init (Lesson 15)
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.
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.