What kind of bad things would happen if you write the whole class in a single file in C++?
- by gilbertc
In C# or Java, class are declared and defined at the same time. In C++, the norm is to write .h and .cpp files separately. What if, we write the whole class in one , say .cpp, file and include that with include guards and stuffs in files that references to it, what kinds of bad thing technically would happen?