December 2011
Intermediate to advanced
672 pages
18h 27m
English

CHAPTER
7
Nested Classes
n 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 ...
Read now
Unlock full access