Cover  by Poornachandra Sarang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

O'Reilly logo

image

CHAPTER

7

Nested Classes

imagen the previous chapter we covered the use of static fields, methods, and initializers. You learned an important feature of Java language—the interfaces. In this chapter, you will learn another powerful feature of classes—that is, nested or inner classes. As the name suggests, you can embed a class declaration within another class. This gives you the power to hide your classes within an outer class. Embedding a class within another class has many more repercussions than simply hiding it from the outside world. An inner class ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required