Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG ?: Hidden properties on subclass has code limit.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00778289
Message ID:
00778618
Vues:
18
>I expected HIDDEN defined on subClass
>is ignored by Parent Class ( SuperClass ).
>
>Example:
>
>Class.Property PUBLIC : Class can uses Property
>SubClass.Property PROTECTED : Class,SubClass can uses Property
>SubSubClass.Property HIDDEN : Class,SubClass,SubSubClass can uses Property
>SubSubSubClass.Property not exists : Class,SubClass,SubSubClass can uses Property, SubSubSubClass no.
>
>How I can write code in a class if subclass can hide me properties or methods ?

Maybe by using PROTECTED instead of HIDDEN, since HIDDEN is documented as: "Include HIDDEN and a list of property names to prevent access and changes to the properties from outside of the class definition. Only methods and events within the class definition can access the hidden properties."
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform