Last active
May 29, 2018 08:49
-
-
Save tmaxxdd/b996f55509378c7cdc840562e473cfd3 to your computer and use it in GitHub Desktop.
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
class Example { | |
private lateinit var text: String | |
fun initialize() { | |
text = "Nadaje wiadomosc" | |
} | |
fun readText(): String { | |
if (::text.isInitialized) { | |
return text | |
} | |
return "Brak wiadomosci" | |
} | |
} | |
fun main(args: Array<String>) { | |
val klasa = Example() | |
//klasa.initialize() | |
print(klasa.readText()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment