daily pastebin goal
87%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top