Interesting point. I suppose also, that since it is a class, there is also
the ability to add function, subroutines, events and such that apply
specifically to an object of type "Person" whereas you wouldn't be able to
do something like that with a simple structure. And what's wrong with being
born in the 1800's? It's possible! =) I plan on living forever, and so
far my plan is working perfectly. heheh.
-Jason
"Larry Serflaten" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> "OpticTygre" <(E-Mail Removed)> wrote
>> 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:
>
>> What is the benefit of typing out all that code over defining a simple
>> structure such as:
>
> The typical answer is because you want to separate the interface from
> the implementation such that you can make later adjustments to the
> implementation, without affecting the interface.
>
> If, for example, it was later decided that records would be rejected when
> the Birthday was entered as being in the 1800's, you could add that as
> a requirement in the properties's Let block. If you just had a field
> member
> you could not add it without creating a new interface (and breaking old
> code
> that used the old interface).
>
> LFS
>
|