资源说明:class rectangle{
double width,height,area,per;
public rectangle(double x,double y){
width=x;
height=y;
}
double Area(){
area=width*height;
return area;
}
double perimeter(double x,double y){
double p=(x+y)*2;
return p;}}
public class rectangleDemo{
public static void main(String args[]){
rectangle ri=new rectangle(10,20);
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。