By piccoloprincipe
via giorgiosironi.blogspot.com
Published: Mar 18 2010 / 16:26
The pattern of today is the State one: its intent is allowing an object to change its behavior when its state change, while hiding the state-related informations. The main role in this pattern is carried out by a State object that encapsulates the state-related behavior beyond a segregated interface. Instead of executing the same structure of conditionals in many methods of the Context object, it delegates part of its job to State. Switch constructs are often candidates for replacement by a State collaborator.
Add your comment
Voters For This Link (10)
-
mitchp -
lyndsey -
davidmartin -
mswatcher -
rogerjose81 -
bhavikdbavishi -
Sicarii -
gromitt -
suraj78 -
turbobuddhist


