Created
July 11, 2020 14:56
-
-
Save korECM/b6e5cf09c06c973d5347bd2f77f24bc8 to your computer and use it in GitHub Desktop.
First Beverage Abstract Class
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
abstract class Beverage { | |
protected description: string; | |
getDescription(): string { | |
return this.description; | |
} | |
abstract cost(): number; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment