Skip to content

Instantly share code, notes, and snippets.

@berdof
Created January 26, 2016 01:08
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 berdof/a54d43c289bf6787ad02 to your computer and use it in GitHub Desktop.
Save berdof/a54d43c289bf6787ad02 to your computer and use it in GitHub Desktop.
class Entity {
renderPartial() {
console.error('Entity');
}
render() {
console.error('header');
this.renderPartial();
}
}
class Person extends Entity{
renderPartial() {
console.error('Person');
}
}
class Manager extends Person {
renderPartial() {
console.error('Manager');
}
}
const manager = new Manager();
manager.render();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment