class Rectangle { // the Rectangle class has 3 fields int width; int height; Point origin; // the Rectangle class has one constructor public Rectangle(int initWidth, int initHeight, Point initOrigin) { width = initWidth; height = initHeight; origin = initOrigin; } void setWidth(int newWidth ) { width = newWidth; } void setHeight(int newHeight ) { height = newHeight; } void setOrigin(Point newOrigin) { origin = newOrigin; } Point getOrigin() { return origin; } void setOrigin(int newX, int newY) { origin.setX(newX); origin.setY(newY); } }