Function base () {
} Base.Prototype.a = function () {Alert ('a in base');}
Function derived () {
} Derived.Prototype = new base (); derived.prototype.base = new base (); derived.prototype.a = function () {Alert ('a in derived');}
VAR B = new base (); b.a (); var c = new derived ();
C.a (); c.base.a ();