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 the main difference between sizeof() operator in c and c++

3 Answers  


What is coupling in oops?

0 Answers  


Describe the difference between a Thread and a Process?

11 Answers   Siebel Systems,


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

0 Answers   IBM,


What is multidimensional array?

1 Answers  






why destructor is not over loaded?

5 Answers  


what is the abstract class,interface ,its difference with a programatic eg.? hi,recently i went for an interview they ask me what is abstract class ,interface and its difference I said abstract class contain abstact method ,abstract method is a method with no body.Abstract class cannot be instantiated.Abstract class is a base class it required derived class for the implementation of method. Interface is a syntactical contract that all derived class should follow it define properties ,method,events which are known as member of interface. Then They asked me what is the difference between them. I said abstract class interface 1.abstact class can implement method 1.interface cant 2.abstact class can contain constructor, 2.interface cant destructor 3.abstract class cannot support multiple 3.interface support inheritance etc Then they said some different answer I said dont no. Then they ask me when i should make abstract class for an project and when i should make interface. I said if suppose there is two class which must be having method with different logic then we sholud make abstract class. and if suppose we have two class having method .with different logic then we can make interface . Am i correct with my explaination.if not correct me .please provide me that when should we create abstract class and interface and what is difference .please help me

1 Answers  


What is the Advantage of Interface over the Inheritance in OOPS?

4 Answers  


What is differance between Abstract and Interface

3 Answers  


who is the founder of c++?

15 Answers   Hexaware, ONGC,


The IT giant Tirnop has recently crossed a head count of 150000 and earnings of $7 billion. As one of the forerunners in the technology front, Tirnop continues to lead the way in products and services in India. At Tirnop, all programmers are equal in every respect. They receive identical salaries and also write code at the same rate. Suppose 14 such programmers take 14 minutes to write 14 lines of code in total. How long will in take 5 programmers to write 5 lines of code in total ?

6 Answers   TCS,


why freind function takes more parameter than normal member function in c++?

1 Answers   IBM,


Categories