Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 6 is not able to locate a parent class
Message
De
23/04/2007 13:30:40
 
 
À
23/04/2007 10:37:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Divers
Thread ID:
01218482
Message ID:
01218996
Vues:
13
>Naomi,
>
>I've made it through the problem we've been discussing. Now I am encountering another problem.
>
>As I've said before I two classes that are based off of a single class. This abstract class has a single property and a few methods. Now if I understand how this is supposed to work the two subclasses should inherit the property and have access to the methods from the parent. Does each subclass have its own "copy" of the property or do they access the single property from the parent class?

I think you're getting confused over classes vs. instances. The class is the model; it tells CreateObject/NewObject what to do when creating an instance. But the class itself and any parent classes don't exist as objects at runtime. Only the instances you create exist.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform