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
Where may a direct subclass of a sealed class be declared in Kotlin 2.4.10?
from Sealed classes and interfaces
Kotlin 2.4.10
intermediate
1 min
Where may a direct subclass of a sealed class be declared in Kotlin 2.4.10?
Only inside the sealed class body
Anywhere in the same package and module, provided it has a qualified name
In any module that uses the same package name
As a local class inside any function
Check
Ask AI about this kata
Report an error
previous kata
Which declaration best models one implementation that is both a known Failure variant and…
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload