just for fun !
var x = function(){
return {toString2 : function(){return "x";}}
}() ;
y = function(){
y.superclass.constructor.call(this);
};
Ext.extend(y,x,{
toString2 : function(){return "y";}
});
var xxx=new y();
alert(xxx.toString2());