July 2015
Intermediate to advanced
1300 pages
87h 27m
English
Typically, modules are required within a project and are not exposed to the external world. Because of this, the default scope qualifier for modules is Friend. But because of their particular nature, modules are also allowed to be Public—but neither Private nor Protected/Protected Friend. Members defined within modules can be also marked as Private.
About Public Modules
There is a particular exception to the previous discussion: creating a custom extension methods library. Because in Visual Basic you define extension methods within modules, if you want to export such methods, you need to mark them as Public. Extension methods are discussed in Chapter 20, “Advanced Language Features.”
Read now
Unlock full access