Operations on var objects

Report a typo

Take a look at this code.

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

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

Which of the following operations are legitimate?

Select one or more options from the list
___

Create a free account to access the full topic