it defines the sequence of states an object goes through in response to events.
it defines the sequence of states an object goes through in response to events.
events are external factors responsible for state change.