Skip to content

Instantly share code, notes, and snippets.

@shotamatsuda
Last active December 19, 2016 16:58
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 shotamatsuda/5253df331ed7003a230b41510bf0512b to your computer and use it in GitHub Desktop.
Save shotamatsuda/5253df331ed7003a230b41510bf0512b to your computer and use it in GitHub Desktop.
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