Re: [Newbies] RE: RE: delegation vs inheritance

2007-08-06 Thread Robert Stehwien
> Sorry for the confusion. I'm just using Stack as an example, I don't need to > use it. I'm just curios of the design choose between delegating (or > forwarding) vs inheritance. Couldn't Stack inherit from LinkedList and > specialize it. I'm not questioning the design choose but just trying to > l

RE: [Newbies] RE: RE: delegation vs inheritance

2007-08-06 Thread Ron Teitelbaum
Hi Darren, Ok I get it now. Consider a stack and a linked list. The stack is a separate entity that understands how to add and remove from the list. If you only used the linked list there would be no single object to talk too. You could have code that says find the top object from any object yo