What problem does the namespace feature solve?

Answer Posted / nimish singh

Multiple providers of libraries might use common global identifiers causing a name collision when an application tries to link with two or more such libraries. The namespace feature surrounds a library's external declarations with a unique namespace that eliminates the potential for those collisions.

This solution assumes that two library vendors don't use the same namespace identifier, of course.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What flag means?

601


Explain the operation of overloading of an assignment operator.

789


Explain what is polymorphism in c++?

721


Is c++ proprietary?

665


What are the advantages of using pointers in a program?

759






What is a dll entry point?

642


What is meaning of in c++?

762


What are 2 ways of exporting a function from a dll?

714


Explain method of creating object in C++ ?

685


What is java and c++?

743


What does ios :: app do in c++?

650


How many namespaces are there in c++?

642


What are dynamic type checking?

694


How many types of scopes are there in c++?

662


What it is and how it might be called (2 methods).

747