Basic HTML version of Foils prepared 13 July 98

Foil 49 DrawablePolygon Constructor #3

From Java Academy II:Advanced Java NPAC/ECS Java Academy -- February to April 98. by Tom Scavo


The third constructor is unique to the DrawablePolygon class: public DrawablePolygon( Point[] points, int npoints ) { this(); // invoke constructor #1 for ( int i = 0; i < npoints; i++ ) { this.addPoint( points[i] ); } }
We defer discussion of constructor #4 until later...



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Nov 28 1998