class Retangle{ private double length;private double width;//构造函数Retangle(double length,double width){this.length = length;this.width = width;}//方法public double getArea(){ return length*width; } public double getGirth(){ return 2*(length+width); }pu···