I want to know the exact difference between Header file (as in MyHeader.hpp) and a namespace in c++?
namespace
c++
Namespace is a new concept of 'ansi c++' to identify global identifiers which are to be frequently used in your programme.
Header file is a source file that supports your program by reusing reliable and tested code hence saving time and effort!!!!