// An application to create and manipulate rectangles
public class RectangleApp {
	//To be excutable, need a main method
	public static void main( String[] args ) {
		Rectangle myRect;//myRect is not instantiated
		myRect = new Rectangle(20.0, 8.0);//instantiated
		//static field
		System.out.println("Any rectangle has " + Rectangle.NUMBER_OF_SIDES + " sides");
		//instance fields
		System.out.println("myRect's origin: "+myRect.originX+","+myRect.originY);
		//calling methods
		System.out.println("Area: "+myRect.getArea());
		//Moving the rectangle
		myRect.move(2,10);//the object's state is changed
		System.out.println("The origin moves to: "+myRect.originX+","+myRect.originY);
	}
}
