Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Protected and Public
Message
De
31/05/1999 00:42:31
 
 
À
29/05/1999 13:48:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00224370
Message ID:
00224600
Vues:
21
Hi John ---

Public --- Can be modified in the class and the instance, accessed from anywhere.
Protected --- Can be modified in the class and instance, but only accessed from the class or a subclass or the instance.
Hidden --- Can only be modified in the class and only accessed by other members of the class.


>Hi,
> I have a timer class that being added into a form. There are several property (.sec,.mins,.hours) set as protected. These properties will be in method display (set as public).
> I fail to retrieve these property from display method. It only works fine if i reset all of these properties to public.
> Does protected property only can be access in class designer and could not be even in the same class within a form?
> How about Hidden property, any differences?
>
>Thank you
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform