Created
May 14, 2020 04:13
-
-
Save lu4nm3/7b19f990151dbb12ab738c0e4666381f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait Perishable { | |
def expired: Boolean | |
} | |
case class Baguette() extends Perishable { | |
def expired: Boolean = ??? | |
} | |
case class Croissant() extends Perishable { | |
def expired: Boolean = ??? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment