Variables and Basic Types in Kotlin - Android Studio Tutorial

preview_player
Показать описание
🏆 My Online Courses
⭐Discount Coupon: LAUNCH-STEVDZA-SAN

🐱‍👤 Wanna become a member? Join!

📸 Instagram

There are two main keywords for declaring variables in Kotlin: VAR and VAL.
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 and can not be assigned multiple times and can be Initialized only single time and is known as the immutable variable in Kotlin.

In this video I'm going to explain you variables and basic types in Kotlin. You are going to see the differences between two keywords for declaring variables and we are going to touch basic types, declaring them and I'm also going to mention few pros about Kotlin programming language like absence of semicolon, and explicit declaration of variable types.
Рекомендации по теме