class Rectangle{
//定义属性,表示矩形的长和宽
int length=1;
int width=1;
//定义方法,求矩形面积
public int area(){
int temp=length*width;
return temp;
}
}
//定义属性,表示矩形的长和宽
int length=1;
int width=1;
//定义方法,求矩形面积
public int area(){
int temp=length*width;
return temp;
}
}