Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inheritance loses properties/methods
Message
De
13/07/2000 15:20:38
 
 
À
13/07/2000 15:16:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00391738
Message ID:
00392003
Vues:
12
I tried to format that on the screen, but it got garbled.

Let's say you have a container and put controls in it and define it as a class. As you note, changes made later to the controls at the class level do not propagate to existing instances of the controls.

In order to do that, create each object as a separate class. Make the composite object when instantiating. Then, when you change any property or method of a class, it will be propagated to all existing instances.

This is standard operating procedure for containers. With that knowledge in mind, I'm much more inclined to do the 2nd process for flexibility later on, but you do lose a bit of convenience.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform