O'Reilly logo

Microsoft® Visual Basic® 2010 Developer’s Handbook by Klaus Löffelmann and Sarika Calla Purohit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Special Form “Module” in Visual Basic

Among all the existing Microsoft .NET programming languages, only Visual Basic has modules. And even here a module is deceptive packaging, because what’s called a module is basically just a class with static methods, properties, and members that cannot be instantiated, like a class with a constructor marked with the access modifier Private, or an abstract class). For the record:

  • A module cannot be instantiated; neither can an abstract class or a class with a private constructor.

  • A module cannot provide overridable procedures; neither can static procedures of a class.

  • A module can provide only procedures, which can be accessed only directly, without an object instance. The same applies to the static procedures ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required