intravenous
intravenous copied to clipboard
Handle prototypal inheritance
How about creating an extends
method that creates an instance of base class and then attaches it to the prototype property of the child class?
Note: Need to make sure the base class is never a singleton, else all the child classes will have the same methods.