area=length*width;
System.out.println(“Area is” +area);
}
}
public class TestBox{
public static void main (String[]
args){Box obj1 =new Box();
Box obj2 =new Box();
obj1.length=5;
obj1.width=10;
obj1.calculateArea;
obj2.length=15;
obj2.width=2;
obj2.calculateArea;
}
}