Jump to content

Java Programming/Nested Classes

From Wikibooks, open books for an open world
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Nesting Classes

In Java you can define a class inside an class. The inner class will be only visible and referencable from the outer class. The inner class is for private use for the outer class.