Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class Method Visibility
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00554548
Message ID:
00554552
Vues:
8
Hi!

This comes from OOP.

Protected - when you create subclass of that class, subclass will be able to work with protected item, but other objects will not be able to access it.

Hidden - Only class can access it. Either subclass or other objects cannot accedd this item. This is useful for hidden implementation if internal class logic.

Well, all above concerned to a single class only. When you have container and make hidden/protected property in it, contained objects will not be able to access that hidden/protected property from the code. Protected/hidden do not aply across the containership.


>I'm a bit confused - can somebody please shed some light.
>
>I have created a class that has various methods ie FillList
>Now if this is set as public then all is fine. If however I change this to Protected or Hidden then an object on a form created from this class no longer works.
>
>The only call to FillList is within the original Class definition.
>
>So what exactly is the point of Protected and Hidden?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform