Originally Posted by leejim
in chapter 6.3.3 combination inheritance sample.
in the code "SubType.prototype.constructor = Subtype"
why not "Subtype.protytype.constructor = SuperType"?
you can see 6.3.1
the previous SubType.constructor is Function SubType; but now SubType is the instance of SuperType, "SuperType.constructor = SuperType" is just equal to "SubType.prototype.constructor = SuperType";
So if you do "SubType.protytype.constructor = SuperType", there will no change;
But, In my view, I think this“SubType.prototye = SubType” is not important, for
"SuperType.call(this, name);" is always work.