Created
July 11, 2020 15:06
-
-
Save korECM/492d1abf925588be2f2b77f405f41d44 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 extends Beverage { | |
constructor() { | |
super(); | |
this.description = "에스프레소~"; | |
} | |
cost() { | |
return 3000; | |
} | |
} | |
class Americano extends Beverage { | |
constructor() { | |
super(); | |
this.description = "아메키라노~"; | |
} | |
cost() { | |
return 4000; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment