What is namespaces?
We can say that a namespace is designed to
provide a path Keep a set of names separate from the other. There is no class
name declared in a namespace Conflicts declared in the second with names of the
same class In simple terms, the name space concept is similar Folder and file
concept. For example, we can create two
Files in two different folders, on the
same name. We can do it Create two squares on the same name but in two different
namespace
For eg:
.NET Framework defines the ListBox class in the System.Windows.Forms namespace.
The following code snippet shows how to declare a variable using the fully qualified name for this class:
List::
Comments
Post a Comment
If you have any query, please let us know