Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: HIDDEN a property is unusable
Message
De
18/02/2005 02:18:45
 
 
À
17/02/2005 11:13:14
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00987841
Message ID:
00988231
Vues:
37
>>This show that HIDDEN is unusable.
>
>Perhaps you are looking for PROTECTED given your example.

Well, I can follow the reasoning

If SubClass is a subclass of SuperClass, then SubClass inherits all its methods and properties, ie the class definition

The property is hidden for SubClass

The question is: does an inherited method execute in the context of the SubClass or of the SuperClass ?

I'm tempted to say that it is the former and that there should be no error on the second call() of the example

The SubClass does not define a new property, it just hides an existing one

Does that make sense ?
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform