Anonymous
public java v1 · immutable double width; public Rectangle() { length = 4; width = 8; } public Rectangle (double length, double width) { this.length = length; this.width = width; } public double calcArea() { return (length * width); } public void doubleFactors(double mult) { length = length * mult; width = width * mult; } public String toString() { return("Length: " + length + " Width: " + width); }}