Roundup question #232 reads: A non-static inner-class always has free access to ALL member data of its enclosing class. True or False? (emphasis from question) Answer: True. But what about inner-classes-in-methods. They're not static, but can only access final data.
Rob Acraman
Ranch Hand
Joined: Dec 03, 2000
Posts: 89
posted
0
OK, my mistake. Inner-classes-in-methods and anonymous inner classes can access all class variables, but only final method variables. I should have checked up before posting, but I was so SURE...!!