Defining one class in another one

Is this a double post from here or what would the difference be?