[EMAIL PROTECTED] wrote:
Ever notice inheritance is that concept every programmer learns but rarely
uses? How many times how you actually made an object (is-a) hierarchy more
than 1 level deep? I'd guess most people use inheritance for mixins and
little more.
Inheritance is just too weird and brittle to be much use in the real world.
Anyone's mileage vary?
I find it depends a lot on the language you are using, actually. Using a
deep hierarchy effectively in C++ is quite difficult and painful, but in
Smalltalk it seems quite natural.
I know it sounds counter intuitive that a programming language would
effect how you design your objects, but it just does.
That said, even a 1 level deep inheritance hierarchy can be a powerful
tool. I'm not sure why you would imply that it was something less than
using inheritance.
--Chris
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg