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.
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 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.