Strange, isn't this entirely defeating the purpose? Why not just do:Isn't this the same as your example, amac?Code:class Ball{}; class Game { Ball b; };
Does anyone know what nesting a class allows or does? From my point of view, it just seems to be a more readable coding style to declare them seperately.
Although, it has been about 3 years since I've actually read through a book on C++, so I may have once known the answer.
Destined




Reply With Quote