Skip to content

Instantly share code, notes, and snippets.

@jasongorman
Created July 27, 2019 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasongorman/e3be880f88b9c890f78668732655e6c9 to your computer and use it in GitHub Desktop.
Save jasongorman/e3be880f88b9c890f78668732655e6c9 to your computer and use it in GitHub Desktop.
add(title, artist){
const cd = this.createCd(title, artist);
this.contents.push(cd);
return cd;
}
createCd(title, artist) {
return new CD(0, 0, new Description(title, artist));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment