Namespaces
A namespace is basically a container of types. This means that one namespace can contain multiple classes, multiple modules, multiple interfaces, multiple structures, and so on. The following is an example of a namespace exposing two classes, one module, one structure, and one interface:
Namespaces are important for a better organization of types, but there is another reason. You could have two classes with the same name (for example, Employee
) but with different properties. Namespaces enable you to avoid conflicts in such scenarios. ...
Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.