Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Protected and Public
Message
De
01/06/1999 09:57:02
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00224370
Message ID:
00224897
Vues:
18
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform