• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why cant True Inner Class have static member variable  RSS feed

 
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
question is simple why?

Why cant True Inner Class have static member variable?

i hope answer is as simple.

thanks, plz feel free to reply with ur own opinion. ;-)
 
author & internet detective
Marshal
Posts: 37518
554
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jigar,
If the inner class doesn't have a name, how would you refer to the static variable?
 
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah, the question was about inner classes, not necessarily anonymous classes. Nearly the same question was recently discussed here. I suggest that followup discussion should go there as well.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!