Skip to content

Instantly share code, notes, and snippets.

@fastman
Created September 11, 2012 09:08
Show Gist options
  • Save fastman/3697097 to your computer and use it in GitHub Desktop.
Save fastman/3697097 to your computer and use it in GitHub Desktop.
var Abstract = function () {
};
Abstract.prototype.fnc1 = function () {
throw new Error('Implement in subclass!');
};
var SubClass = function () {
Abstract.call(this);
};
SubClass.prototype = Object.create(Abstract.prototype);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment