Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Q: read-only property, the shortest implementation?
Message
 
To
23/07/2004 18:52:42
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00927230
Message ID:
00927509
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform