Skip to content

Instantly share code, notes, and snippets.

@skvithalani
Created February 19, 2020 13:28
Show Gist options
  • Save skvithalani/9ae8b73bd96a408e3267dabb4892c502 to your computer and use it in GitHub Desktop.
Save skvithalani/9ae8b73bd96a408e3267dabb4892c502 to your computer and use it in GitHub Desktop.
sealed trait Zoo extends BorerSerializable {
def primaryAttraction: Animal
}
object Zoo {
final case class NorthZoo(primaryAttraction: Animal) extends Zoo
final case class SouthZoo(primaryAttraction: Animal) extends Zoo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment