Categories

Jun 11 in C++

Q: What is Namespace?

1 Answer

Jun 11

Namespace allows us to group a set of global classes, objects and/or functions under a specific name.

The general form to use namespaces is:

namespace identifier { namespace-body }

Where identifier is any valid identifier and the namespace-body is the set of classes, objects, and functions that are included within the namespace. Namespaces are especially useful in the case where there is a possibility for more than one object to have the same name, resulting in name clashes.

Click here to read more about C++
Click here to read more about Insurance

Related questions

Madanswer
Jun 11 in C++
Jul 16, 2019 in C++
Jun 15 in C++
...