Created
July 27, 2019 10:31
-
-
Save jasongorman/39c97e8947a2f84f453b25adaab6aff6 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(title, artist, price) { | |
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