Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sealed class Vinyl {
- object Skull : Vinyl()
- data class Angels(val numberOfAngels: Int) : Vinyl()
- data class Flowers(val numberOfFlowers: Int) : Vinyl()
- data class Guns(val label: String) : Vinyl()
- object Boots : Vinyl()
- }
- typealias Flag = Color
- data class Wheel(
- val sizeInInches: Float,
- val tyre: Tyre
- ) {
- enum class Tyre {
- Ultrasoft, Supersoft, Soft, Medium, Hard, Intermediate, Wet
- }
- }
- data class Car(
- val vinyl: Vinyl,
- val flag: Flag?,
- val wheel: Wheel
- )
Add Comment
Please, Sign In to add comment