Basic HTML version of Foils prepared 13 July 98

Foil 44 Reusable Classes

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


1 The previous example had two classes in a single file (but only one was public)
2 The next example also has two classes, but in separate files (both may be public)
3 The advantage of this approach is that other Java programs may use these classes (since they're defined in separate files
4 In this way, a class becomes reusable

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