Last active
August 29, 2015 14:06
-
-
Save stuntgoat/4f673cf5e4dcde992535 to your computer and use it in GitHub Desktop.
The base classes.
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
class Dirt | |
class GardenItem extends Dirt { | |
val flavor = "seedy" | |
} | |
class Cucumber extends GardenItem { | |
override val flavor = "bland" | |
} | |
class Watermelon extends GardenItem { | |
override val flavor = "sweet" | |
} | |
class Cocktail extends Cucumber { | |
override val flavor = "refreshing" | |
} | |
class FruitSalad extends Watermelon { | |
override val flavor = "fruity" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment