Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic inheritance in Foxpro
Message
From
07/12/2000 02:05:13
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00449805
Message ID:
00450259
Views:
40
David,

The quote from thread #342582 but I suspect it is taken from

http://www.cetus-links.org/oo_visual_foxpro.html

where it sounds like

"Like Smalltalk, Visual Foxpro operates on dynamic inheritance. It instantiates classes from a library or from base classes. It can also modify and save classes - including contained objects into the class library at run time."

I am just reading book "Design patterns" Gof4 and it says about languages with static ( compile time , C++ , Java ) and dynamic ( run-time , SmallTalk ) subclassing , so I was just curious to see a meaningful example of that in VFP.

>Michael,
>
>Where did you get that quote?
>
>Inheritance isn't really dynamic at all. In a classlibrary subclasses have an explicit reference to the classlib and class it is derived from.
>
>With a PRG based class you could change the definition of the baseclass based on the current SET PROCEDURE stack. I'd strongly urge you to not try doing something like this it goes against nearly every principle of good O-O design.
>
>>"Visual Foxpro operates on dynamic inheritance. It instantiates classes from a library or from base classes. It can also modify and save classes - including contained objects into the class library at run time."
>>
>>Does anyone have or know a location of the complete example demonstrating dynamic inheritance in VFP.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform