17. State
nAllow an object to alter its behavior when its internal state changes nFor example, most methods of a TCPConnection object behave in different ways when the connection is closed, established or listening nHow do we encapsulate the logic and data of every state?
n