what is the use of Namespace in c++.

Answer Posted / achal ubbott

Template feature came to c++ quite later from its birth. It
basically helps some big coders.
Now if u buy 2 libraries from market and both of these
define a class Ethernet; Then if u use both of them in your
code the copiler will give some redeclaration of class
errors. So this Namespace feature helps the coder to
differentiate among the two.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we distribute function templates and class templates in object libraries?

675


What are the advantages of using typedef in a program?

728


Write about the local class and mention its use?

729


Evaulate: 22%5 a) 2 b) 4 c) 0

759


Can malloc be used in c++?

667






What is polymorphism & list its types in c++?

716


What is an adaptor class or wrapper class in c++?

692


What are separators in c++?

716


What's the hardest coding language?

647


What is the auto keyword good for in c++?

721


Why do we need c++?

691


Why c++ is the best language?

690


How do you add an element to a set in c++?

644


Write a program to find the reverse Fibonacci series starting from N.

691


What are the benefits of oop in c++?

694