Skip to content

Instantly share code, notes, and snippets.

@sean9999
Created December 10, 2016 23:06
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 sean9999/708ab36abf6e9dcddd6d2dd2b4024a44 to your computer and use it in GitHub Desktop.
Save sean9999/708ab36abf6e9dcddd6d2dd2b4024a44 to your computer and use it in GitHub Desktop.
so 41080980 created by sean9999 - https://repl.it/EmmE/1
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