Exactly. Class definitions cannot go inside other classes, except with certain languages that do thing like allow you to create referenced classes that will only be instantiated at the same time as they are defined.
Think about it in terms of language. If I were to define the word "Dictionary"
Dictionary: a reference book containing an alphabetical list of words with information about them
But then inside that defintion further define the word "reference"
Reference Inside Dictionary: a book about the relation between a word or phrase and the object or idea it refers to containing an alphabetical list of words with information about them
E
say we also define book
Reference, Book Inside Dictionary: a physical object consisting of a number of pages bound together about the relation between a word or phrase and the object or idea it refers to containing an alphabetical list of words with information about them
It's the same thing with Classes. The definition of a class belongs outside of the instantiation of the class. If you were to define the definition of a private class inside a larger class, it would only be evaluated when you were actually creating an object of that larger class. It would be the same as saying the work book is only defined like it is above when it is used in reference to a dictionary, and only when talking about a physical dictionary, rather then the defintion or idea of one.
GHopefully that wasn't to twisted...sorry, little sleep, lots of work, not enough coffee in the world
-Tarwn
01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
The never-completed website