Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Kotlin
/
Object-oriented programming
Which declaration permits a subclass to replace calculate()?
from Object-oriented programming
Kotlin 2.4.10
beginner
1 min
Which declaration permits a subclass to replace calculate()?
class Price { fun calculate() = 0 }
open class Price { open fun calculate() = 0 }
class Price { override fun calculate() = 0 }
final class Price { open fun calculate() = 0 }
Check
Ask AI about this kata
Report an error
previous kata
BillingService needs to send audit records through interchangeable destinations. Which re…
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload