Home Segments Top Top Previous Next

645: Mainline

The argument against bringing together many classes into one compilation unit is that only one of the classes can be accessible universally. Accordingly, most Java programmers place each class in its own compilation unit—said another way, they ensure that each file contains just one class definition.