All parts of a class definition must be in it's declaration/body. You can't split the class body across multiple files, so you also can't define inner classes anywhere else.
IMO it also generally makes sense to have things that belong together so closely in the same spot.