Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Protected and Public
Message
 
To
01/06/1999 06:40:34
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00224370
Message ID:
00224850
Views:
15
Arnon,

You are partially correct. Hidden properties are NOT visible to the instance, only to the class. Try this;

Create a class and add a property named Junk that is hidden. Place that class on a form and write This.Junk = "ABC" in the GotFocus of the instance. Run it. You will get an error because the instance cannot see the hidden property. Hidden are also hidden from subclasses.

Protected hides things from other Objects, not classes. Protected are visible to the class, all subclasses and the instance. They are not visible outside of the instance, that is two objects from the same class cannot access each others protected properties.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform