StateThe book has now been published and the content of this chapter has likely changed substanstially.
Use polymorphism to vary the behavior of an object based on its state.
Allow an object to alter its behavior when its internal state changes. The object will appear to change its class.
Copyright © 2003-2008 Gerard Meszaros all rights reserved