New answers tagged

1 vote
Accepted

Should I instantiate the state objects of a finite state machine?

There are many ways to model states. Most programming languages don't model "real world" items directly but rather have their own features that are used to compose solutions that do the ...
user avatar
  • 32.3k
1 vote

Should I instantiate the state objects of a finite state machine?

Using classes just as expensive enums isn't object oriented, it's just plain wrong :-) A possible object oriented approach would be to implement the state transitions as methods of the state objects, ...
user avatar

Top 50 recent answers are included