Skip to content

Instantly share code, notes, and snippets.

@nshermione
Created January 30, 2017 13:18
Show Gist options
  • Save nshermione/458d3229c2498153c36222c1a2c8676f to your computer and use it in GitHub Desktop.
Save nshermione/458d3229c2498153c36222c1a2c8676f to your computer and use it in GitHub Desktop.
/**
* Created by thinhtran on 1/30/17.
*/
class A {
protected a = 1;
constructor() {
}
talk() {
console.log(this.a);
}
}
class B extends A {
talk() {
super.talk();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment