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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Overloading a constructor 1

Status
Not open for further replies.

RicoCali

Programmer
Dec 7, 2002
80
0
0
US
How do you overload the constructor in .NET?

Public Sub New()
End Sub

Public Sub New(By Value myInteger As Integer)
End Sub

Public Sub New(By Value myString As String)
End Sub

Can I have all those subs at the same time? I know you overload in C#. Just didn't know if you can do that with VB.NET

Thanks,
Rico
 
>Why ask if you can try?

...because I'm lazy?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top