me_again
Newcomer
I think I'm missing something here...
In the following links
http://msdn.microsoft.com/msdnmag/issues/01/08/Instincts/default.aspx
http://msdn.microsoft.com/library/d...ry/en-us/dndotnet/html/overloadingmethods.asp
the authors discuss constructor overloading in VB.NET, using code examples such as
Did Microsoft make changes to the VB language after these articles were released?
The reason I'm asking is that for the life of me, I can't create overloaded constrcutors in VB.NET
When I try the code snippet above, I get 'Sub New can not be declared Overloads' (See the attachment)
Can someone please tell me why this is?
In the following links
http://msdn.microsoft.com/msdnmag/issues/01/08/Instincts/default.aspx
http://msdn.microsoft.com/library/d...ry/en-us/dndotnet/html/overloadingmethods.asp
the authors discuss constructor overloading in VB.NET, using code examples such as
Visual Basic:
Class Person
Private name As String
Private age As Integer
Overloads Public Sub New()
MyClass.New("John Doe", -1)
End Sub
Overloads Public Sub New(n As String, a As Integer)
name = n
age = a
End Sub
End Class
Did Microsoft make changes to the VB language after these articles were released?
The reason I'm asking is that for the life of me, I can't create overloaded constrcutors in VB.NET
When I try the code snippet above, I get 'Sub New can not be declared Overloads' (See the attachment)
Can someone please tell me why this is?