• Post Reply Bookmark Topic Watch Topic
  • New Topic

Static and Nested Classes ???  RSS feed

 
Cecil Phillip
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do I get an error on Graph and not on Graph3 when i compile this ?

 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An inner class cannot contain static members unless they are compile-time constants.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!