Last active
December 19, 2016 16:58
-
-
Save shotamatsuda/5253df331ed7003a230b41510bf0512b 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 { | |
constructor() { | |
const privateVariable | |
this._protectedVariable | |
this.publicVariable | |
function privateFunction() {} | |
} | |
_protectedFunction() {} | |
publicFunction() {} | |
} | |
class Derived extends Base { | |
constructor() { | |
super() | |
} | |
_protectedFunction() { | |
super._protectedFunction() | |
} | |
publicFunction() { | |
super.publicFunction() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment