You are on page 1of 1

class Rectangle{

final int width;


final int height;
Rectangle(int width, int height) {
this.width = width;
this.height = height;
}
Rectangle(int size) {
this.width=size;
this.height=size;
}

Rectangle( int area){


this.width = width;
this.height = height;
int area= width*height;

You might also like