Guest User

Untitled

a guest
Sep 14th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. sealed class Vinyl {
  2. object Skull : Vinyl()
  3. data class Angels(val numberOfAngels: Int) : Vinyl()
  4. data class Flowers(val numberOfFlowers: Int) : Vinyl()
  5. data class Guns(val label: String) : Vinyl()
  6. object Boots : Vinyl()
  7. }
  8.  
  9. typealias Flag = Color
  10.  
  11. data class Wheel(
  12. val sizeInInches: Float,
  13. val tyre: Tyre
  14. ) {
  15. enum class Tyre {
  16. Ultrasoft, Supersoft, Soft, Medium, Hard, Intermediate, Wet
  17. }
  18. }
  19.  
  20. data class Car(
  21. val vinyl: Vinyl,
  22. val flag: Flag?,
  23. val wheel: Wheel
  24. )
Add Comment
Please, Sign In to add comment