Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Constructors?

Status
Not open for further replies.

hays

Technical User
May 3, 2001
9
CA
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.
 
VB6 does not support constructors or overloading . . . VB.Net (due out this fall) will support both. - Jeff Marler B-)
 
Well, VB 6 sort of has constructors for objects.

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).

Chip H.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top