Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing Method code at Instance Level
Message
De
30/03/1998 07:47:17
Steve Camsell
Windmill Associates
Bath, Royaume Uni
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00088041
Message ID:
00088048
Vues:
28
>Steve,
>
>I think Ian's right that you can't modify methods at run-time. If subclassing the class is not practical, you may want to consider passing the object a parameter when you instatiate it. Use the parameter to determine the appropriate behavior.
>
This isn't actually for myself, but for a colleage. However, it has interested me so much, that I really want to find out exactly what is going on. My understanding was that instance of the class was created. I guess I hadn't REALLY thought about what an instance was. It would seem that an instance is simply a temporary subclass of the object. The name of the class (as in DEFINE CLASS ClassName AS ParentClass) being the name property of the "instance" on the form.

Would you agree with this?
Steve Camsell
Development Consultant
Steve.Camsell@Windmill-DBM.Co.Uk
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform