Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 6 is not able to locate a parent class
Message
From
23/04/2007 13:30:40
 
 
To
23/04/2007 10:37:06
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01218482
Message ID:
01218996
Views:
12
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform