This constructor mimics the corresponding constructor of the superclass Polygon: public DrawablePolygon( int[] xpoints, int[] ypoints, int npoints ) { super( xpoints, ypoints, npoints ); } |
Constructor #2 is not used much in practice, however, since repeated calls to the addPoint(...) method are usually more convenient |