Design Patterns - State Pattern

Posted Friday, August 08, 2008 10:14 AM by CumpsD

It's been a while again, but it's time for another pattern. Today we'll look at the State Pattern.

First of all, the definition: "Allow an object to alter its behavior when its internal state changes. The object will appear to change its class."

State Pattern Class Diagram

Read more at http://blog.cumps.be/design-patterns-state-pattern/

Comments

# re: Design Patterns - State Pattern

Friday, August 08, 2008 8:41 AM by Elijah Manor

Nice... check out the riddle for this pattern!

http://tinyurl.com/5fy82j