According to this Link
Is it safe to assume you can have multiple classes within a single .cpp, or executable?
Does this also mean there is no limit of classes I can create for one executable or .cpp?
Printable View
According to this Link
Is it safe to assume you can have multiple classes within a single .cpp, or executable?
Does this also mean there is no limit of classes I can create for one executable or .cpp?
Yep, that's right, but common practice is to have each class in its own .cpp file with its own associated .h file. Also, if you are gonna have a whole lotta classes, you might wanna put them in a DLL file for easy updating.
That's on odd question. For all practical purposes, the answer is yes. Perhaps you could write a test program to 'push it to the limit' by declaring several thousand classes?? :p