Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
protected - question/gripe
Message
De
19/07/1999 13:54:57
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
protected - question/gripe
Divers
Thread ID:
00243195
Message ID:
00243195
Vues:
65
Hi all,

A little philosophical wandering here. I understand the concept of hidden and protected props-methods as far as they are implemented in VFP, but there are a couple things that bother me about it, and I'm looking for a little insight from others.

1) If a property is protected, I STILL think I, as the designer, should be able to set it at the instance level IN THE DESIGN ENVIRONMENT. That is, I want to be able to set the property up to some different default for each instance, but still want it to be 'protected' i.e. other objects can't change it. What am I missing here?

2) Again, with protected, I belive that other objects created at the same class level should be able to access protected properties of an object. For example, if I have a form class - and create some protected property on that class, WHY can't buttons, etc. ALSO added to that class access the property? In my mind - buttons, etc added to a form (or other container class) ought to count as part of that container class as far as protected goes.

TIA,
Ken
Ken B. Matson
GCom2 Solutions
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform