O
OpticTygre
Alright, so I'm messing around with some code, and I brought up a good
question to myself.
If creating a class called "Person", and filling that class with variables,
properties like:
Public Class Person
Private mstrName As String
Private mdtBirthDate As Date
Public Property Name() As String
Get
Return mstrName
End Get
Set(ByVal Value As String)
mstrName = Value
End Set
End Property
etc......
What is the benefit of typing out all that code over defining a simple
structure such as:
Structure Person
Public Name As String
Public BirthDate As Date
End Structure
-J
question to myself.
If creating a class called "Person", and filling that class with variables,
properties like:
Public Class Person
Private mstrName As String
Private mdtBirthDate As Date
Public Property Name() As String
Get
Return mstrName
End Get
Set(ByVal Value As String)
mstrName = Value
End Set
End Property
etc......
What is the benefit of typing out all that code over defining a simple
structure such as:
Structure Person
Public Name As String
Public BirthDate As Date
End Structure
-J