// Так я думаю можно?
function Animal() {
animal.getName = function(name) {
this.name = cat.name;
};
function Cat() {}
extend(Cat, Animal)
Cat.prototype.meow = function(..) {
cat.meow = function() {
return "Cat" + this.name + "is saying meow";
};
alert( cat.meow );
}
|