Organizing Types Within Namespaces

Namespaces are defined within Namespace..End Namespace blocks. Every namespace can expose the following types and members:

• Classes

• Structures

• Enumerations

• Modules

• Interfaces

• Delegates

• Nested namespaces

Listing 9.1 shows an example of a namespaces exposing most of the preceding listed members.

Listing 9.1 Organizing Types Within a Namespace

image

image

As you can see from Listing 9.1, you can organize your custom objects within a namespace. The code implements an abstract class Person, three derived classes ...

Get Visual Basic 2010 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.