Greetings to all!
I'm a newbie in vb. I just would like to know how to implement class constructor in this language.
Thanks in advance..
Greetings to all!
I'm a newbie in vb. I just would like to know how to implement class constructor in this language.
Thanks in advance..
Not sure what you mean with "class constructor" but I'd assume you mean one of the ones below.
Instance constructor:
Public Sub New()
End Sub
Shared constructor:
Shared Sub New()
End Sub
If you mean VB 6, that would be Private Sub Class_Initialize()
.
http://msdn.microsoft.com/en-us/library/55yzhfb2(VS.80).aspx
If you mean VB.NET it is Public Sub New()
or Shared Sub New()
.