Created
July 11, 2020 17:10
-
-
Save korECM/73359a7638995f24663eb9183e66031c 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
let myCoffee = new Americano(); | |
console.log(`${myCoffee.getDescription()}는 ${myCoffee.cost()}원입니다~`); | |
let myCoffee2 = new CaffeeLatte(); | |
myCoffee2 = new Ice(myCoffee2); | |
myCoffee2 = new Whip(myCoffee2); | |
myCoffee2 = new Whip(myCoffee2); | |
console.log(`${myCoffee2.getDescription()}는 ${myCoffee2.cost()}원입니다~`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment