Basic HTML version of Foils prepared 13 July 98

Foil 34 The Rhombus Class

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

The Rhombus Class
The Rhombus class is straightforward: class Rhombus extends Parallelogram { public Rhombus( int x, int y, int size, double alpha ) { super( x, y, size, size, alpha ); } public Rhombus( int x, int y, int size, double alpha, double theta ) { super( x, y, size, size, alpha, theta ); } }
Such is the beauty of object-oriented design!



© 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