Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access and Assign vs. OOSE
Message
De
26/10/1998 14:07:52
 
 
À
26/10/1998 14:05:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00149911
Message ID:
00150594
Vues:
51
Hi Erik ----

>
>The property 'accessed' using access/assign doesn't even have to be the property that actually stores the value! I could add a property and corresponding a/a methods called obiz.fullname that returns obiz.fname + " " + obiz.lname. In this case, the real properties aren't exposed at all. Doesn't this conform to the assertion that object should hide properties? If you agree with this then the a/a propertyhaving a different name from the actual property becomes a triviality. I could change the name of the property without changing the public interface at all. Just like get/set.
>
>

This exact method was demostrated to me in VB. And it's a good one.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform