Fix the bugs so that the returnName function of the ActuallyMe class can be overridden correctly.
Overriding functions
Fix bugs
Report a typo
Write a program in Kotlin
private class Me {
open fun returnName(name: String): String = "My name is $name"
}
open class ActuallyMe : Me() {
fun returnName(name: String): String = "Actually, my name is $name"
}
___
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.