intravenous icon indicating copy to clipboard operation
intravenous copied to clipboard

Handle prototypal inheritance

Open tusharmath opened this issue 9 years ago • 0 comments

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.

tusharmath avatar Apr 03 '15 20:04 tusharmath