javascript Programming Glossary: derived.prototype
Objects don't inherit prototyped functions http://stackoverflow.com/questions/11072556/objects-dont-inherit-prototyped-functions this x Derived per instance init this.y y Make the Derived.prototype be a new object backed up by the Base.prototype. Derived.prototype.. be a new object backed up by the Base.prototype. Derived.prototype Object.create Base.prototype Fix up the 'constructor' property.. Base.prototype Fix up the 'constructor' property Derived.prototype.constructor Derived Add any Derived functions Derived.prototype.bar..
JS: Confusion about inheritance http://stackoverflow.com/questions/7944880/js-confusion-about-inheritance console.log this._n function Derived n Base.call this n Derived.prototype new Base Derived.prototype.constructor Derived Now this is what.. Derived n Base.call this n Derived.prototype new Base Derived.prototype.constructor Derived Now this is what I understand A single Base.. property. So far this is okay. But I don't like this line Derived.prototype new Base Function Base expects an argument but I am passing..
|