Shared Classes

Visual Basic, different from other .NET languages such as Visual C#, does not provide the capability of creating shared classes. To accomplish this, you have two alternatives: You can create a class the usual way and mark all members as shared, or you can create a module. Modules are a specific Visual Basic feature that work almost as shared classes (see Chapter 10, “Modules”).

Get Visual Basic 2015 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.