В каком примере есть описание класса?
(Ответ считается верным, если отмечены все правильные варианты ответов.)
Варианты ответа
Person.prototype.talk = function(){ trace("Привет, меня зовут "+ this.name +". Мне "+ this.age +" лет.");}
MathPlus = new Object();MathPlus._proto_ = Math;MathPlus.oldMax = Math.max;MathPlus.max = function(x, y, z){ firstComparison = MathPlus.oldMax(x, y); secondComparison = MathPlus.oldMax(firstComparison, z); return secondComparison;}Object.prototype.Math = MathPlus;
Person = function(name, age){ this.name = name; this.age = age; this.legs = 2; this.head = new Object() this.head.eyes = 2; this.head.memories = new Array();}(Верный ответ)
Person = function(){ this.name = "Justin"; this.age = 16; this.legs = 2; this.head = new Object() this.head.eyes = 2; this.head.memories = new Array();}(Верный ответ)