Just another weblog

Archive for September 2009

State Pattern

September 9, 2009

State Patterns-Pattern which shows the states it can remain in a machine.Best example to be taken is the Gumball machine example as stated. The gumball machine has 4 states; 1 Has quarter 2 No quarter 3 Put quarter 4 Machine full These 4 states has to be manipulated in series. The implementation code is given […]