Created
July 27, 2019 10:52
-
-
Save jasongorman/ee9b6ba2554afbf9e19158d21f752b0a 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 CdFactory { | |
createCd(cdInfo) { | |
const {title, artist, price} = cdInfo; | |
return new CD(price, 0, new Description(title, artist)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment