Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Inner classes

 
Anirban dutta
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can inner classes be named inside a function ?
 
Anthony Villanueva
Ranch Hand
Posts: 1055
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. It's called a local inner class. If the method is static, this local inner class can only access static members of the enclosing class, as well as any local variables declared as final.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!