Created
July 11, 2020 17:04
-
-
Save korECM/e2f98d2896f86e42e6e3ac098c4e140c 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(); | |
myCoffee = new Ice(myCoffee); | |
console.log(`${myCoffee.getDescription()}는 ${myCoffee.cost()}원입니다~`); | |
let myCoffee2 = new Americano(); | |
myCoffee2 = new Ice(myCoffee2); | |
myCoffee2 = new Ice(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