Operations on val objects

Report a typo

Take a look at this code.

class Plane {
    val canFly: Boolean = true
    var family: String = "Unknown"
}

fun main() {
    val plane = Plane()
    /* operation */
}

Which operations are legit?

Select one or more options from the list
___

Create a free account to access the full topic