Basic HTML version of Foils prepared 13 July 98

Foil 54 Overloading a Method

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


1 This method appears in the Octagon class: // Overload Polygon.addPoint( int, int ): public void addPoint( Point p ) { super.addPoint( p.x, p.y ); }
2 This new version of the addPoint(...) method relies on the old version (which virtually guarantees its correctness)

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