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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

non-static inner class

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Report post to moderator
WHAT IS THE MAIN PURPOSE OF USING THE NON-STATIC INNER CLASS?
*IS IT TO GET ACCESS TO OTHER CLASSES IN OTHER PACKAGES?
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please keep it down. Thank you.
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Report post to moderator
non-static inner classes keep a reference to the outer class allowing it to access member variables of the outer class
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Report post to moderator
Honey,

You've been asked several times to stop shouting in these forums.
If you continue to do this we will have to assume that you are deliberately being rude which violates our number one rule, "Be Nice".
Threads that contains questions which are not nice are subject to being deleted.

-Ben
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!