Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
JVP's mid-tier inheritance challenge
Message
From
31/01/2000 11:40:57
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00324138
Message ID:
00325059
Views:
31
>What I mean is that composition is often a better alternative to inheritance..
>
>>>It is all about the design and architecture. If you do it right, you are in good shape. There is a preponderance of evidence that has found however that often, relying on implementation inheritance leads to problems. Why do you think the patterns movement in the VFP community is so popular???
>>
>>I don't know, can you expand?


This is getting really interesting. To help clarify further -- can you give an example of the following please:

1) You are creating a base class.
2) You are not doing anything obviously wrong -- you are leaving lots of hooks and putting the properties you will need in the base class.
3) But you get yourself into real trouble and would have been much better off using composition.
Thanks

Gar W. Lipow
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform