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

I generally stay out of those religious war threads, I don't have the time to waste on them. I wanted to make sure that quote wasn't coming out of some official VFP documentation.

VFP is more like Smalltalk than it is C++, much more happens at runtime, variables can change type at runtime in VFP, they can not in C++.

Subclassing doesn't really occur at runtime though. The inheritance hierarchy is defined at compile time. VFP is looser though WRT changes to classes higher up the class tree. If I have ClassC derived from ClassB which is derived from ClassA, and I make a change to ClassA, I do not have to recompile ClassB or ClassC to see the change take effect when I instantiate either a ClassB or ClassC.

>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.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform