Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Access and Assign vs. OOSE
Message
From
26/10/1998 14:07:52
 
 
To
26/10/1998 14:05:11
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00149911
Message ID:
00150594
Views:
41
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform