+ 1
What is the difference between header file and namespace?
2 Réponses
+ 2
In a header file, there is definition of many entities that is needed for programming.
A namespace can discriminate the entities of a header file. For example if we want to have two classes with a same name in a same header file, we must have two namespaces and declare that classes in different namespaces.
+ 1
ow thnq 😊