module vs class

A module provides a way to declare public members that can be
seen throughout the entire project (also known as global). While
this may seem convenient, it's disorganized and goes against
the concepts of OOP. You should never have to use a module.
Instead, create a class that has static (Shared in VB) members.

Also, modules do not have instances like classes do; they are not
initialized or destroyed, and their variables keep their vaules for
the duration of the app's execution.
 
Back
Top