Answer: In order to declare a set of objects,
namespace is used.
namespace is a domain for the type names.
namespace is used to organize the elements which creates unique types by avoiding conflicts.
namespace Home.Hall.Television
{
class Channel1 { }
class Channel2 { }
}
namespaces doesn't depends on assembly type and also they do not have any impact on the member accessibility such as public, private etc.
Asked In: Spotted While Learning |
Alert Moderator