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
/
Sealed classes and interfaces
Which declaration best models one implementation that is both a known Failure variant and…
from Sealed classes and interfaces
Kotlin 2.4.10
intermediate
1 min
Which declaration best models one implementation that is both a known Failure variant and a known Retryable variant?
Two sealed interfaces implemented by the same class
Two sealed classes inherited by the same class
One enum entry with mutable fields
One open base class with an else branch
Check
Ask AI about this kata
Report an error
next kata
Where may a direct subclass of a sealed class be declared in Kotlin 2.4.10?
Quiz
A new version is available
Reload