Instance Methods (cont’d)
The two methods rely on the corresponding methods of the Graphics class: public void draw( Graphics g ) { g.drawPolygon( this ); } public void fill( Graphics g ) { g.fillPolygon( this ); }
Note that each method takes an argument g