Skip to content

Instantly share code, notes, and snippets.

@dgtlmonk
Last active August 29, 2015 14:14
Show Gist options
  • Save dgtlmonk/c58407aa4838ffa26f2a to your computer and use it in GitHub Desktop.
Save dgtlmonk/c58407aa4838ffa26f2a to your computer and use it in GitHub Desktop.
BaseEntityClass = function(_entityId) {
//
this.EntityId = _entityId;
}
BaseEntityClass.prototype.getEntityType = function() {
return "I'm an entity Type";
}
BaseEntityClass.prototype.getEntityId = function() {
return this.EntityId;
}
var entity = new BaseEntityClass();
PersonEntityClass = function(_entityId) {
this.EntityId = _entityId;
}
PersonEntityClass.prototype = new BaseEntityClass(); // inherit prototype
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment