/* mCircle.java */ import java.awt.*; public class mCircle extends mRectangle { public mCircle(int _x, int _y, int _w, int _h) { /* call mRectangle's constructor */ super(_x, _y, _w, _h); } public void paint(Graphics g) { /* draw a circle */ g.setColor(color); g.fillOval(x, y, w, h); } }