Basic HTML version of Foils prepared 13 July 98

Foil 36 No-argument Constructor

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


1 The simple constructor public Triangle() { super(); } has no arguments and calls the corresponding no-argument constructor of the superclass Polygon
2 As a result, the expression new Triangle() has the same effect as new Polygon()

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