Created
December 29, 2017 03:57
-
-
Save Storyyeller/ea8337ab2b9dd5663eceb2ad6b5990ae 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 Base { | |
foo() {return 'foo in Base';} | |
static bar() {return 'bar in Base';} | |
} | |
class Child extends Base { | |
foo() {return super.foo();} | |
static bar() {return super.bar();} | |
} | |
const obj = new Child; | |
console.log(obj.foo()); // foo in Base | |
console.log(Child.bar()); // bar in Base | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment