>Hi Victor,
>
>>Looking at Gamma software patterns book I wonder how many can be implemented without inheritance.And I wonder how good could be a framework if you cant use some critical patterns due to lacks of your development tools.
>
>I didn't say that you can avoid inheritance completely, but you can create a framework with much less than people often think. VB, for example, supports inheritance. Sounds strange? But it's true, VB supports interface inheritance, while VFP supports implementation inheritance. Many design patterns use the parent class not to implement functionality, but to define an abstract class. An interface is quite similar to that.
>
>Second, and more important, design patterns are _design_ patterns, not implementation patterns. While the pattern book shows implementations using an object oriented language, design pattern can be implemented in any language, even in FoxPro 2.x. They are independant from the implementation, rather they help you on the design stage.
>
I have a pair of examples where I'd be lost without implementation inheritance, but I get your point.
regards
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only