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
BillingService needs to send audit records through interchangeable destinations. Which re…
from Object-oriented programming
Kotlin 2.4.10
intermediate
1 min
BillingService needs to send audit records through interchangeable destinations. Which relationship keeps the boundary smallest?
BillingService inherits FileAuditSink.
BillingService accepts an AuditSink interface in its constructor.
BillingService writes to a companion-object list.
Every billing method creates its own FileAuditSink.
Check
Ask AI about this kata
Report an error
previous kata
A family of parsers needs one shared constructor-owned cache and a fixed parse template. …
Quiz
next kata
Which declaration permits a subclass to replace calculate()?
Quiz
A new version is available
Reload