Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java in General
What is the use of Inner classes in OO perspective?
Birla Murugesan
Ranch Hand
Posts: 66
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
What is the use of Inner classes in OO perspective?
Martin Vanyavchich
Ranch Hand
Posts: 241
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You limit visibility. If your class is used by only one other class, it makes sense to make it an inner class and by this, possibly, hiding it's implementation.
SCJP 6, OCMJD 6, OCPJWSD 6
I no good English.
Rajesh Nagaraju
Ranch Hand
Posts: 63
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Inner classes are useful for creating helper classes that depend on the outer classes.
Eg: Iterators
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
innerclass
Static inner class question
Re:inner classes
inner classes?
about InnerClasses
More...