Basic HTML version of Foils prepared 13 July 98

Foil 38 Another Constructor (cont'd)

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


The previous constructor first calls the no-argument constructor of the superclass Polygon
It then "constructs" a Triangle object by adding three points to the this reference
The keyword this (which may be omitted) refers to the particular Triangle object being created



© 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