rendered paste body/* default package */public class Rectangle extends java.lang.Object{ /* Fields */ private double x; private double y; private double w; private double h; /* Constructors */ public Rectangle(double xpos, double ypos, double width, double height) { x = xpos; y = ypos; w = width; h = height; } /* Methods */ public double getX() { return x; } public double getY() { return y; } public double getWidth() { return w; } public double getHeight() { return h; } public double getArea() { return w*h; } public static Rectangle intersection(Rectangle r1, Rectangle r2) { } public java.lang.String toString() { }}