Created
April 29, 2016 18:28
-
-
Save easierbycode/e7d1ce75bdd9a85fd6bd68b9e623184a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Project { | |
constructor() { | |
this.location = 'Mazatlan'; | |
} | |
} | |
class SoftwareProject extends Project { | |
constructor() { | |
super(); | |
this.location = this.location + ' beach'; | |
} | |
} | |
let sp = new SoftwareProject; | |
sp.location; | |
// "Mazatlan beach" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment