Created
November 11, 2018 09:24
-
-
Save ozcanzaferayan/64f2c92b1ad947b5547ca99005e3f188 to your computer and use it in GitHub Desktop.
Kotlin Nedir makalesinde null olabilen bir değişkene null ataması
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ? operatör null olabilen bir değişken oluşturmayı sağlıyor | |
var b: String? = "abc" | |
b = null // Atamada bir problem yok | |
print(b) // Terminal çıktısı: null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment