1:
2: public class RectangleDemo
3: {
4: public static void main(String[] args)
5: {
6: Rectangle box = new Rectangle( );
7: box.setDimensions(10, 5);
8: System.out.println("The area of our rectangle is " + box.getArea( ));
9: }
10: }