A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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 ]
Don't get me started about those stupid
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