Bottles fix

Report a typo

How to fix the following snippet of code?

open class Bottle(val volume: Float) {
    open fun getFullInfo(): String = "$volume volume"
}

open class GlassBottle(volume: Float, val color: String) : Bottle(volume) {
    fun getFullInfo(): String = super.getFullInfo() + ", $color color"
}
Select one option from the list
___

Create a free account to access the full topic