Arrange the lines of code in the correct order to make the code work.
Argument naming in overridden functions
All lines in order
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
override fun makeSound() {
}
}
open class Animal {
open fun makeSound() {
}
println("The dog barks")
class Dog : Animal() {
}
println("The animal makes a sound")
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
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.