Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • As an aside, I forgot if there's an actual name for doing this, in any language. I thought it was "subclass", but that would be used as "FooBarException is a subclass of Exception"... Commented Feb 22, 2012 at 21:16
  • Aside for your aside, I think you are looking for 'inner class', and here is a link to a similar question: stackoverflow.com/questions/4351782/… Short answer is 'No' Commented Feb 22, 2012 at 21:19
  • It's also called "nested classes". Commented Feb 22, 2012 at 21:20
  • @watcher and linepogl - thanks, that would be why I couldn't find duplicates. "Member class" kept getting treated as "class members" in searches... Commented Feb 22, 2012 at 21:28