in reply to Re: Inheritance vs Delegation: pros and cons
in thread Inheritance vs Delegation: pros and cons
I would agree here, with the caveat that inheritance should be governed by interfaces. For example, one could say that a hovercraft is-a LandVehicle and is-a WaterVehicle. The differences between LandVehicle and WaterVehicle need to be orthogonal, with that any overlap is atomic.
Explanation of my butchering of English:
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Inheritance vs Delegation: pros and cons
by hakkr (Chaplain) on Jul 28, 2003 at 15:58 UTC | |
|
Re^3: Inheritance vs Delegation: pros and cons
by adrianh (Chancellor) on Jul 29, 2003 at 09:31 UTC |