A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Joined: Nov 17, 2003
Nov 17, 2003 08:50:00
Can a single inner class instance be tied to multiple outer class instances? If not, is there a work-around?
Joined: Sep 10, 2003
Nov 17, 2003 09:46:00
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.
[ November 17, 2003: Message edited by: Angel Dobbs-Sciortino ]
rocket mass heater
subject: Inner Classes
Question in K&B Book - protected class
Passing an object to a method.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014