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
A family of parsers needs one shared constructor-owned cache and a fixed parse template. …
from Object-oriented programming
Kotlin 2.4.10
intermediate
1 min
A family of parsers needs one shared constructor-owned cache and a fixed parse template. Which starting point best matches that contract?
An abstract class with protected state and a final template method
An interface with a backing field
A top-level mutable variable
An object declaration shared by every parser
Check
Ask AI about this kata
Report an error
next kata
BillingService needs to send audit records through interchangeable destinations. Which re…
Quiz
A new version is available
Reload