What is the benefit using some source files instead of all in one
file?
Is that has something to do with make, build, quick compile or
something etc? can you explain please.. thanks
If you actually design your projects, then you can put together the class
specification/public interface together and hand it off to another team who
is going to use it. They can then develop using the interface while you
merrily finish development of the class. At the end, you may have to give
them a new header with all your private data, but in the meantime, everyone
has been able to make progress.
The other reason has to do with compile times, though with sophisticated
enough build systems could probably get the needed info from intermediate
files, so that isn't an amazingly good reason.
And, the most important reason.... history. In the olden days, separate
header files was the easiest way to allow separate compilation.
joe