Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Protected and Hidden
Message
De
04/03/1999 13:01:04
 
 
À
04/03/1999 12:42:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00194090
Message ID:
00194103
Vues:
19
Protected property are only visible to the class and all subclass of it.

Hidden property are only visible to the class itself. Not even the subclass cann see them.

Yes, it's a better choice to scope the property to were it's used. If a property will be only used by the class, it should be made protected or hidden to keep the interface simpler and prevent other process to access/modify the property.

> What is the differences betw proteced and hidden property? Should I set all of myproperty which is only used in myclass as proteced or hidden?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform