Last active
August 29, 2015 14:14
-
-
Save dgtlmonk/c58407aa4838ffa26f2a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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