This is a newbie question, but what do I have in place of object constructors (like in Java). And can I have multiple constructors for a single object? (different params?) Thanks.
In a class module, you've got Class_Initialize and Class_Terminate events. They don't take any parameters, and are called when a class is instantiated and freed.
Note that .frm and .bas modules don't have this (although forms *do* have their Form_Activate and Form_Load events, it's not the same as a constructor)
.NET will have true constructors with polymorphism and all. Probably has destructor, too (haven't checked).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.