In Kotlin Documentation, there is mentioned about deferred assignment
val a: Int = 1 // immediate assignment
val b = 2 // `Int` type is inferred
val c: Int // Type required when no initializer is provided
c = 3 // **deferred assignment**
What is the meaning of deferred assignment?
This means simply that the variable is initialized not in its declaration but at a later point.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With