Define class module and a code module.Modules are commonly used in VB.NET programs. A module is not a class or type, but it is just an organizational namespace for programs that is shared. It is recommended to use classes as building blocks for complex application rather than modules. A module is not object-oriented.
In a Module, all members are shared and have Friend accessibility. We cannot instantiate a Module. It serves mainly to organize code in a global, single place.
|