Basic HTML version of Foils prepared 13 July 98

Foil 34 A Triangle Class

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


1 The Triangle class class Triangle extends Polygon { ... } is a subclass of the Polygon class
2 An instance of Triangle is created with new: Triangle triangle = new Triangle(...);
3 The Triangle constructor on the right is defined in the Triangle class above

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