[Newbies] RE: delegation vs inheritance
gruntfuttuck at gmail.com
Sat Aug 4 17:03:23 UTC 2007
from: Ron Teitelbaum
>I have to ask is Grunt your real name? Do you have a real name?
Oh, OK then, it's Darren :-)
>Ok so your question is very vague. I'll try to answer, but I'm not sure my
answer will be much help.
>Stack is a specialization of Object
>Stack has a linked list
>Stack normally implements linked list as a collection of StackLinks.
>StackLink is a specialization of Link
>Link has a nextLink that normally points to an instance of Link (or it's
subclasses) to provide a linked list structure.
>Does that help?
Thanks Ron, yes that does help but also what would be the thought process (I
know you can't read minds) to choose this approach as apposed to
View this message in context: http://www.nabble.com/delegation-vs-inheritance-tf4216781.html#a11998239
Sent from the Squeak - Beginners mailing list archive at Nabble.com.
More information about the Beginners