If get to know something new by reading my articles, don't forget to endorse me on LinkedIn This article introduces the concepts of lateinit and lazy in Kotlin, highlighting their popularity in handling property initialization. The article promises ...

Markdown supported · ⌘↵ to post
Kaouther Mefteh
Hi there, thanks a lot this is very useful :) small note is lateinit does not work with primitive types, means this line lateinit var age: Int is not correct. on the other hand primitive types are used with lazy delegates