Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memory used by Objects
Message
From
24/09/1999 11:22:13
 
 
To
24/09/1999 11:12:12
Sony Joseph
Dovenmuehle Mortgage Inc
Schaumburg, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00268505
Message ID:
00268533
Views:
26
Yes. A public variable can be changed by any procedure or method, making it difficult to debug. A property is encapsulated inside a class and the class can control who can access the properties and who can change it. You can even hide it completly and make the user access it's value by methods only.

I don't use PUBLIC variables anymore since VFP 3.0. I don't use many PRIVATE variables either. Eevrything is either LOCAL or a class property.
>So do you mean to say that it is better to have an object with 100 properties instantiated rather than having 100 public/global variables in the main program?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform