Commands are useful tools when dealing with behaviors in objects. By making the request to an object, a Command object, and storing the command in an Invoker object, we can modify and keep historical records of different actions performed on an object.; Author: Christopher G. Lasater; Section: Book Chapters; Chapter: General Reading
The state pattern is a design pattern that allows an object to completely change its behaviour depending upon its current internal state. By substituting classes within a defined context, the state object appears to change its type at run-time." /></head><div id='diigo_sta' class='diigolet' style='color:#000;font-size:12px!important;height:24px;line-height:24px;border-bottom:1px solid #bbb;position:absolute;top:0;left:0;background-color:#fff;z-index:999;width:100%;'>This is a cached version of <a style='color:#0044cc;' href='http://www.blackwasp.co.uk/State.aspx'>http://www.blackwasp.co.uk/State.aspx</a>. Diigo.com has no relation to the site.<a style='position:absolute;right:20px;top:0;color:#0044cc' href='javascript:void(0)' onclick='document.getElementById("diigo_sta").style.display="none";return false'>x</a></div><script type='text/javascript'>if(self.location.href!=self.parent.location.href){var a = document.getElementById('diigo_sta');a.parentNode.removeChild(a);};</script><body><form name="aspnetForm" method="post" action="State.aspx" id="aspnetForm