This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Inner class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Inner class" Watch "Inner class" New topic

Inner class

soumyanil Kayal

Joined: Jun 05, 2000
Posts: 5
How is an inner class diferent from a subclass in terms of:
Whether an inner class can extend any other class?
Can it be declared static,private?
deekasha gunwant
Ranch Hand

Joined: May 06, 2000
Posts: 396
An inner class
--- is a class which is defined inside another class
--- can be static as well as private
--- can extend a class or implement an interface
--- it can access all the members of enclosing class (including private memnbers)
Thunthu Ganapathy

Joined: May 09, 2000
Posts: 19
Also would like to add
* All non static nested classes are called inner classes.
Have you checked out Aspose?
subject: Inner class
jQuery in Action, 3rd edition