Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
sealed class Yarn {
   class Cotton : Yarn()
   class Silk : Yarn()
   sealed class Wool : Yarn() {
       class Merino : Wool()
       class Alpaca : Wool()
   }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment