Search for question
Question

Problem 11.3

Let's say that we want a class to represent a rectangle which is located somewhere in the XY plane. To keep things simple, assume that the rectangle is oriented either vertically or horizontally, never at an angle. posn is a Point object specifying the upper left corner of the rectangle.