Code sample 2, formatted
Ya want multiple inheritance? You got it:
function Class3()
{
this.base1 = Class1;
this.base1(); // run Class1 constructor
this.base2 = Class2;
this.base2(); // run Class2 constructor
}
Class3 has members foo and bar.
