I recently purchased SAMS Teach Yourself C++ In 21 Days and it says that i should put classes in a header(.h or .hpp) file but have the class functions in a .cpp file, why is this? and wouldn't it be easier to write the functions in the header file along with the class?