Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning a value from a class form
Message
From
15/11/2001 08:32:46
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00579966
Message ID:
00581990
Views:
27
John:

> The programmer does not need to know the private variable. The class however
> does. Apart from wrapping things in a function, I don't see the difference..
There is a difference in ease of use.

If the private variable name is hardcoded in the class, then the programmer who wants to use the class has to know the name of the variable to use.
If the private variable name is not hardcoded in the class, the programmer must be aware that he has to create a private variable and pass the name to the class.

Using a wrapper around the class makes it easier to use because the private variable name is no longer an issue for the programmer who wants to use the class.

Daniel
Previous
Reply
Map
View

Click here to load this message in the networking platform