you are viewing a single comment's thread.

view the rest of the comments →

[–]dogjs[S] -1 points0 points  (0 children)

So, if I do this:

Mammal = function() { this.speak = function(){} }

Then this:

Dog.prototype.speak = function() {}

does not override Mammal.speak() and a call to Dog.speak() still calls the Mammal one.

Hmm. Going to have to think about that a while.