Created
July 13, 2018 02:08
-
-
Save esirK/c249125c9ded71bfb21e88734c4f18b1 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
class Espresso: Beverage() { | |
override var description: String="Espresso coffee" | |
override fun cost(): Double { | |
return 1.99 | |
} | |
} | |
class DarkRoast: Beverage() { | |
override var description: String = "Dark Roast coffee" | |
override fun cost(): Double { | |
return 0.9 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment