Skip to content

Latest commit

 

History

History

chain_of_responsibility_01

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Another version of COR

In this version we are using main/root (starting point) that we can pass some methods and run them. Instead of calling the next method and attach next functionality so on and so forth.

first attempt

step1.SetNext(step2)
step2.SetNext(step3)

second atttempt

steps.SetNext(step1)
steps.SetNext(step2)
steps.SetNext(step3)