Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vf50-Property Adding
Message
De
25/02/1997 13:10:01
 
 
À
25/02/1997 12:11:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00021957
Message ID:
00021972
Vues:
32
>When you are adding a New Property, and you are asked
>the Visibility. When should you choose the appropriate one?
>
> 1. Public
> 2. Protected
> 3. Hidden

Trick question <g>

If you want to debug it - don't use Protected.
You can't even seea protected property in the debugger!

Hidden has some strange problems with subclassing in 5.0

Public means any subclass, or any other class can tamper with the property.


I would recommend Public until you are certain the class works perfectly, then change to Protected if it's not a property a programmer using hte class should touch.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform