Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Q: read-only property, the shortest implementation?
Message
 
À
23/07/2004 18:52:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00927230
Message ID:
00927509
Vues:
21
Hiya Steve,
>
>For some reason he has said that he needs it to be a property...not retrieved by a method. Slam dunk in C# :)

Yeah, but IMO, the best practice is to create an interface for the property. This promotes information hiding. The outside world doesn't need to know anything about the object except its interface. This way, the internals can change without breaking any existing code.

BTW, for an undetermined period of time, I'll be off the UT during most regular working hours (8-5 ET). If you, or anyone else, wants my feedback here, please send me an email indicating the thread number. Basically, I'll be on-line for short periods (I'm using dial-up) after 8PM Monday through Wednesday, after 4PM Thursdays and after 5PM Fridays. I'll check-in regularly over the weekends.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform