Select the correct output of the code below:
open class Drink(val cost: Int, val name: String) {
override fun toString() = "cost=$cost, name=$name"
}
class Coffee(val coffeeType: String): Drink(13, "Coffee")
println(Coffee("Mochaccino"))Select the correct output of the code below:
open class Drink(val cost: Int, val name: String) {
override fun toString() = "cost=$cost, name=$name"
}
class Coffee(val coffeeType: String): Drink(13, "Coffee")
println(Coffee("Mochaccino"))Create a free account to access the full topic