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