Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

anonymous classes

 
Neelima Chandran
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
'A static reference variable can reference an instance of an anonymous class' - couldn't understand this one....can someone explain?
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a trivial example:


Does that help?
 
Neelima Chandran
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeep! should've known that. Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic