Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is polymorphism?
Message
 
To
23/03/1999 20:49:06
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00200864
Message ID:
00201547
Views:
23
>>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.
>
>Which is very far from real multiple inheritance. The subclass of the container inherits only from the container and not from its contained members, thus is not inheritance. To simluate the inheritance one should override (at container level) all methods in the contained members, define all additional properties, etc.
>
>While I found multiple inheritance very useful in C++... I am VERY glad such thing doesn't exist in VFP. :)
>
>Vlad

I am not arguing, just pointing out that if you create a class (called TestClass) that has a container (based on a container class) and other objects (for instance, 2 buttons based on a button class) and the parent container class' proterties are changed, those changes are inherited into the TestClass class. If you change properties in the parent button class, those changes are inherited into the TestClass class also. So this TestClass class does inherit properties from two classes.

Joe
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform