/* File: mOval.java */ import java.awt.*; public class mOval extends mRectangle { public mOval( int new_x, int new_y, int new_w, int new_h ) { // Call mRectangle's constructor: super( new_x, new_y, new_w, new_h ); } // Override mRectangle.paint( Graphics ): public void paint( Graphics g ) { g.setColor( color ); g.fillOval( x, y, w, h ); } }