What is namespace?

Answers were Sorted based on User's Feedback



What is namespace?..

Answer / kiruthika

A namespace is an abstract container or environment created
to hold a logical grouping of unique identifiers (i.e.,
names).
Namespaces allow to group entities like classes, objects
and functions under a name.

Is This Answer Correct ?    57 Yes 4 No

What is namespace?..

Answer / ritesh kumar rawat

Namespace is a group of classes, structures, interfaces,
enumerations, and delegates, organized in a logical
hierarchy by function, that enable you to access the core
functionality you need in your applications.
Namespaces are the way that .NET avoids name clashes
between classes. A namespace is no more than a grouping of
data types, but it has the effect that the names of all
data types within a namespace automatically get prefixed
with the name of the namespace. It is also possible to nest
namespaces within each other.

Is This Answer Correct ?    39 Yes 5 No

What is namespace?..

Answer / vadivel

namespace is used to avoid class name collision.

Is This Answer Correct ?    28 Yes 7 No

What is namespace?..

Answer / srikanth

A namespace uniquely identifies a set of names so that there
is no ambiguity when objects having different origins but
the same names are mixed together.

Is This Answer Correct ?    9 Yes 5 No

What is namespace?..

Answer / biraja

Namespace is the collections of class.

Is This Answer Correct ?    8 Yes 5 No

What is namespace?..

Answer / kishor khatri

A Namespace is a container for a set of identifiers (names),
and allows the disambiguation of homonym identifiers
residing in different namespaces or we can say it simply
provides a named group of classes, structures, enumerations,
delegates, interfaces and other namespaces and Within the
namespace, all declared items must be uniquely named...

Is This Answer Correct ?    1 Yes 0 No

What is namespace?..

Answer / muhammad azeem khan

Namespace is the collection of classes , structures , interfaces, functions , delegates under the function that is a logical hierarchy structure... It helps us to avoid clash between the names of classes, Simply,, collection of class

Is This Answer Correct ?    2 Yes 2 No

What is namespace?..

Answer / ruchi jaiswal

Namespace is a collection of classes and interface..

Is This Answer Correct ?    0 Yes 0 No

What is namespace?..

Answer / sonu kumar sahani

Namespace is the collections of class and all the intructons
of Namespace.

Is This Answer Correct ?    0 Yes 1 No

What is namespace?..

Answer / kalaiselvan

Namespace is a one of the collection of classes,
structures, objectives and functions under a part of
functions. In this namespaces allow the Entity for All
functiions like classes, structures, and objectives.
But Namespaces are Avoid the class name Collision..

Is This Answer Correct ?    3 Yes 6 No

Post New Answer

More OOPS Interview Questions

What is encapsulation in ict?

0 Answers  


Write 7 differences between "Public" function and "Private" function?

2 Answers   IBM, Wipro,


#include <iostream> using namespace std; int main() { int a = 2; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][c[1][4]]; }

2 Answers   TCS, Wipro,


1. Define a class.

6 Answers  


What are the 4 pillars of oop?

0 Answers  






What are the data types in oop?

0 Answers  


Which is the only operator in C++ which can be overloaded but NOT inherited?

8 Answers  


What are objects in oop?

0 Answers  


can main method be overloaded...??? How..????

2 Answers   Satyam,


What is Dynamic Polymorphism?

13 Answers  


How compiler selects(internally) required overridden function in inheritance?

2 Answers   CSC, Infinite Computer Solutions,


What does oop mean in snapchat?

0 Answers  


Categories