Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Encapsulation problems
Message
De
04/06/1998 09:10:26
 
 
À
03/06/1998 01:18:40
David Moreau
Iglesia Ni Cristo - Dnm
Quezon, Philippines
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00104274
Message ID:
00104667
Vues:
21
Hello David, >I have found it very difficult to create classes in VFP 5.0. I thibk that creating classes is MOST wonderful thing that I know ;) >My first difficulty is using protected methods and properties. I find myself unable to access these functions and properties from instantiations of the class. Is this correct behavior? Is this reaasonable behavior? I often find myself declaring PROTECTED members can be accessed only from methods of this class. You can't use them from outside. >properties and methods public, even when they should not be. In such a cases, create a method to SET/GET a value of these properties. >My second difficulty concerns using an array in a class. In my case, this array is a hash table to the data in the ComboBox. Since there may be multiple instances of the class, and since the hash table is specific to the particular instance, the class >should contain the array. What is an elegant way of hiding an array inside a class such that each instance of the class has its own distinct instance of the array. Just create a property that is array actually.
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform