Dofactory.com
Dofactory.com
 Back to list
Views:   7.4K
Replies:  1
Archived

How are successors removed in Chain Of Responsibility Pattern?

How are successors removed, one by one, in the Chain Of Responsibility Pattern?
It gets addeds like the code below:

larry.SetSuccessor(sam);

sam.SetSuccessor(tammy);

No one ever explains how these objects are removed from the successor collection.

Could anyone clarify how this is done?

Venkatesh Kumar, Jul 19, 2010
Reply 1
Hi,
sorry but I think I didn't get your question,
whay do you mean by "how these objects are removed from the successor collection"
1. why you want to remove those oobjects?
2.you do not have to remove them, you can set them to another successor.

if my answer don't appropriate to your question, explain  more clearly your question.
Thanks

Asaf Maimon, Jul 25, 2010
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Cookies       Do Not Sell       Licensing      
Made with    in Austin, Texas.  - vsn 44.0.0
© Data & Object Factory, LLC.