constructor in a module?

I was just experimenting with a module.
That module has a few classes.
I added a constructor to the module and I’m not sure I know when it will be called or if it will ever be called.
Does a constructor make sense in a module?

You could make an Init method for your module and call it on startup?

You can create an Init method that your classes can call and use a flag to make sure you don’t Init more than once.

What you created is a normal method that happens to be called “Constructor”. Call it like any other, but it won’t be called for you by the framework. A method named Constructor in a class is “special” in that the framework will call it when you instantiate an instance of the class. Modules don’t have instances, so it’s technically incorrect to say you added “a constructor” to the module. You merely added a method with that name.