Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Public vs Hidden
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00596399
Message ID:
00596756
Vues:
26
>Ok then;
>
>I have 2 child classes based off a parent. they use same method
>and property names, but the code us different.
>
>But, I want the PEM's to be hidden. So I have to add identical
>method names and duplicate code into both methods, if I want them
>hidden??

Yes, if you want them Hidden. Why do you want them Hidden and simply not Protected? What is the design issue you are trying to fulfill here?

Since the code is different, you could make the assciated PEMs Protected in the Parent class and override the code in the subclassed children.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform