The class module is a template for creating any number of instances.
The (static) code module is similar to a class module with a single instance. It is sometimes named singleton classes.
In B4A, due to the way Android is built, code modules cannot handle events. In B4i and B4J code modules can handle events.