JavaScript

Common Methods: toString

Circle.prototype.toString = function (){
    return "[Circle of radius " + this.r + ", centered at("
        + this.x + ", " + this.y + ").]";
}

José M. Vidal .

62 of 65