David,
The quote from thread #
342582 but I suspect it is taken from
http://www.cetus-links.org/oo_visual_foxpro.htmlwhere 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.