Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Protected and Public
Message
From
01/06/1999 09:57:02
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00224370
Message ID:
00224897
Views:
19
>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.

Hi Jim

I tried your example and you get error when property is PROTECTED and HIDDEN.

So, what's the true story now.

Mo
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform