Basic HTML version of Foils prepared 13 July 98

Foil 20 Rectangle Constructor #1

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


1 There are two Rectangle constructors
2 The first constructor is straightforward: public Rectangle( int x, int y, int w, int h ) { super(); // a constructor of the superclass this.addPoint( x, y ); this.addPoint( x + w, y ); this.addPoint( x + w, y + h ); this.addPoint( x, y + h ); }

in Table To:


© 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