super ("Union"); resize (250, 250);
Frame f = new union (); f.show();
g.setColor (Color.lightGray); Rectangle r2 = r.union (r1); g.fillRect (r2.x, r2.y, r2.width, r2.height); g.setColor (Color.black); g.drawRect (r.x, r.y, r.width, r.height); g.drawRect (r1.x, r1.y, r1.width, r1.height);