Using Java
Write only “stubs” for methods in the Figure,
Rectangle, and Triangle
classes:
Consider a graphics system that has classes for various figures
— say, rectangles, boxes, triangles, circles, and so on. For
example, a rectangle might have data members’ height, width, and
either a center point or upper-left corner point, while a box and
circle might have only a center point (or upper-right corner point)
and an edge length or radius, respectively. In a well-designed
system, these would...