Value classes (formerly inline) allow wrapping types for safety without the runtime overhead of an extra object.
← Kotlin theorytheory 0/50 · 0%
Advanced · hard
40. Inline Classes & Value Classes
Zero-overhead wrappers.
Check your understanding
1. Keyword for value class?
2. Requirement?