Information générale
Catégorie:
Programmation Orientée Object
>>HI,
>> What is the usage of HIDDEN property since it can not be accessed by any object even it subclass?
>>
>>Thank you
>A hidden property is used in that class only.
>you can use it for example to store internal data to.
>The subclassed classes don't need that data so it can be hidden.
A example for this:
If you want to have a grid class with a RowChange function you can code that in your grid.
for that functionality you need to store the actual row in a property of that grid.
if the new value differs from the one in the property you call the home made RowChange method.
Now the subclassed classes haven't anything to do with that property.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement