Created
December 10, 2016 23:06
-
-
Save sean9999/708ab36abf6e9dcddd6d2dd2b4024a44 to your computer and use it in GitHub Desktop.
so 41080980 created by sean9999 - https://repl.it/EmmE/1
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 First { | |
constructor() { | |
this.loc = '1'; | |
} | |
test() { | |
console.log('first', this.loc); | |
} | |
} | |
class Second extends First { | |
constructor() { | |
super(); | |
this.loc = '2'; | |
} | |
test() { | |
console.log('second',this.loc); | |
super.test(); | |
} | |
} | |
class Third extends Second { | |
constructor() { | |
super(); | |
this.loc = '3'; | |
} | |
test() { | |
console.log('third',this.loc); | |
super.test(); | |
} | |
} | |
let t = new Third(); | |
t.test(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment