Home Segments Top Top Previous Next

Chapter 38:

How to Define Inner Classes and to Structure Applications

Java allows you to embed the definition of one class inside the definition of another. Listener classes, for example, are commonly embedded in application classes, thereby improving program clarity through proximity.