Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inner Classes

 
Tyler Jordan
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can a single inner class instance be tied to multiple outer class instances? If not, is there a work-around?
 
Angel Dobbs-Sciortino
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can add a static modifier to your inner class. It isn't called an inner class anymore after that; then it is a static nested class.
Angel
[ November 17, 2003: Message edited by: Angel Dobbs-Sciortino ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic