Classes, Properties, and structures
From: OpticTygre (optictygre_at_adelphia.net)
Date: 10/24/04
- Next message: Larry Serflaten: "Re: Serialization is not working"
- Previous message: Maileen: "Create a configuration file (XML or INI)"
- Next in thread: Larry Serflaten: "Re: Classes, Properties, and structures"
- Reply: Larry Serflaten: "Re: Classes, Properties, and structures"
- Reply: Dennis: "RE: Classes, Properties, and structures"
- Reply: Herfried K. Wagner [MVP]: "Re: Classes, Properties, and structures"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 24 Oct 2004 15:48:10 -0400
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
- Next message: Larry Serflaten: "Re: Serialization is not working"
- Previous message: Maileen: "Create a configuration file (XML or INI)"
- Next in thread: Larry Serflaten: "Re: Classes, Properties, and structures"
- Reply: Larry Serflaten: "Re: Classes, Properties, and structures"
- Reply: Dennis: "RE: Classes, Properties, and structures"
- Reply: Herfried K. Wagner [MVP]: "Re: Classes, Properties, and structures"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|