How to use the Kotlin Init Block

preview_player
Показать описание
In this lesson, you'll learn what the Kotlin init block is in a class and how you can use it.

Рекомендации по теме
Комментарии
Автор

We can use constructor for intialisation, again why this init sir

harisai
Автор

for someone new to oop, and especially new to Kotlin, this some serious Inception stuff going on here, but instead of dreams, we are dealing with constructors and init-blocks 😄😄

Cablur