R
Roedy Green
I think I almost have it understanding inner, nested, top-level,
public etc classes and the equivalent enums.
What I don't understand is the restriction on no static variables in
inner nested non-static instance classes. Why?
What puzzles me is it seems ok to derive inner classes from a class
that has some static variables. It only seems upset about new statics.
I finally figured out why you can only access final enclosing local
variables in your anonymous inner classes.
I am gradually putting it together and will post in the next day or
two at http://mindprod.com/jgloss/innerclasses.html
The other puzzle is why enums constructors cannot access static
fields.
--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm
Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
public etc classes and the equivalent enums.
What I don't understand is the restriction on no static variables in
inner nested non-static instance classes. Why?
What puzzles me is it seems ok to derive inner classes from a class
that has some static variables. It only seems upset about new statics.
I finally figured out why you can only access final enclosing local
variables in your anonymous inner classes.
I am gradually putting it together and will post in the next day or
two at http://mindprod.com/jgloss/innerclasses.html
The other puzzle is why enums constructors cannot access static
fields.
--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm
Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes