class Rectangle{
int length;
int width;
void assignValue(int l, int w){
length =l;
width = w;
}
void calculateArea(){
System.out.println("Area of Rectangle is = "+length*width);
}
}
public class TestRectangle{
public static void main(String args[]){
Rectangle r1 = new Rectangle();
Rectangle r2 = new Rectangle();
Rectangle r3 = new Rectangle();
r1.assignValue(2,5);
r2.assignValue(14,15);
r3.assignValue(24,25);
r1.calculateArea();
r2.calculateArea();
r3.calculateArea();
}
}