title: Implement a finite state automaton in OOP
body: <p>I am thinking about implementing a program with finite state automaton in an OOP language like Java or C++.</p>
  
  <p>What would you think is the best way to implement this with a manageable amount of available states, regarding to good software design?</p>
  
  <p>Is it good to implement for each state an own class?
  If yes, how to do the bridge between two states?</p>
  
  <p>Thanks for any comment!</p>