febs
11/26/2018, 12:50 PMdiesieben07
11/26/2018, 12:52 PMval a: String
if (condition) {
a = "foo"
} else {
a = "bar"
}
febs
11/26/2018, 12:54 PMdiesieben07
11/26/2018, 12:54 PMinit { }
block (or constructor), since you can't just write inside the class body.val antani: String
init {
antani = "ciao"
}
febs
11/26/2018, 12:56 PMdiesieben07
11/26/2018, 12:56 PMinit
.antani = "ciao"
code cannot be put at that place.febs
11/26/2018, 1:13 PMdiesieben07
11/26/2018, 1:14 PM