Basic HTML version of Foils prepared 13 July 98

Foil 41 Triangle Class Revisited

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


In summary, the Triangle class has two constructors and two instance methods: class Triangle extends Polygon { public Triangle() {...} public Triangle(...) {...} public void draw(...) {...} public void fill(...) {...} }
Now let's see how we can use this class...



© 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