wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Use of Inner classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Use of Inner classes" Watch "Use of Inner classes" New topic
Author

Use of Inner classes

Ravindranath Chowdary
Ranch Hand

Joined: Nov 08, 2006
Posts: 71
Hi Ranchers,
Can you please give me an idea of what is the need of inner classes with an example.

Thanks,
Ravindra
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38896
    
  23
Go here, download and unzip a copy of Thinking In Java (Bruce Eckel, 3rd edition) and look at the chapter about interfaces and inner classes (I think ch 8).
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Use of Inner classes