i have this:
Public Class Customer
Private _ID As Integer
Public Sub New(ByVal id As Integer)
Me.ID = id
End Sub
Public Property ID() As Integer
Get
Return Me._ID
End Get
Set(ByVal Value As Integer)
Me._ID = Value
End Set
End Property
my question is,what the sub new is for?
its not a property or a method,so basically what it does???
(is it a built in something like "sub main" in modules?)
Public Class Customer
Private _ID As Integer
Public Sub New(ByVal id As Integer)
Me.ID = id
End Sub
Public Property ID() As Integer
Get
Return Me._ID
End Get
Set(ByVal Value As Integer)
Me._ID = Value
End Set
End Property
my question is,what the sub new is for?
its not a property or a method,so basically what it does???
(is it a built in something like "sub main" in modules?)