Kotlin Data Types: What's the difference between Val and Var in Kotlin ?.

preview_player
Показать описание
var is like a general variable and can be assigned multiple times and is known as the mutable variable in Kotlin. Whereas val is a constant variable that can be Initialized only a single time and is known as the immutable variable in Kotlin.

Link to the Sample Project
Рекомендации по теме
Комментарии
Автор

short and sweet nice video thank you 🙏🏼🙏🏼🙏🏼

someshsahu
Автор

Extremely useful and highly underrated. Thanks for this.

Amitthakkarofficial