Arrange the lines of code for the application to work correctly.
Overriding properties
Correct statement in the code
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
val cat = Cat()
class Cat: Animal() {
}
open class Animal {
}
override val sound: String = "meow"
}
fun main() {
println(cat.sound)
open val sound: String = "silent"
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.