Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is polymorphism?
Message
 
To
23/03/1999 12:06:15
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00200864
Message ID:
00201004
Views:
24
Thanks Ed. I've simulated multiple inheritance and didn't even know it.

Take care.

>Multiple inheritance means that subclass inherits PEMS from two or more parent classes, instead of one as it's done in VFP. BTW, it still can be simulated in VFP by combining two classes into one container class and then subclassing the latter.
>
>>What is multiple inheritance?
>>
>>
>>>>>I couldn't remember if it was something that VFP supports.
>>>>>
>>>>>I'm interested because I went to the FOSE convention in Washington. At the Corel booth was a guy who told me about Paradox, which he said supported polymorphism but not inheritance. He was not a developer, I think, and may not have been clear about the definitions of those terms.
>>>>
>>>>Here you go, from vfp Help: Polymorphism:
>>>>
>>>>An object-oriented programming term. The ability to have methods with the same name, but different content, for related classes. The procedure to use is determined at run time by the class of the object. For example, related objects might both have Draw methods. A procedure, passed such an object as a parameter, can call the Draw method without needing to know what type of object the parameter is.
>>>
>>>Oh, heh. I guess I didn't think to check the help because I had the idea that polymorphism was multiple inheritance, which vfp doesn't support. That in turn made me think that the Corel employee was mistaken about his terms, which I guess he wasn't.
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform