Question: Need to make corrective actions State vs. Strategy If a finite state machine defines behavior of the object. every method on an object's interface operates
Need to make corrective actions

State vs. Strategy If a finite state machine defines behavior of the object. every method on an object's interface operates differently after a change. the client controls the choice of behavior implementation but does not necessarily invoke it directly. the behavior is associated with one particular operation of the several in the responsibility of the object. the client can substitute implementations of an algorithm at any time in the life of the object. you view the selection of the algorithm as always dependent on the current algorithm and what just happened to the object. an object can have one of several behaviors, but the behavior never changes during the life of the object. then consider State vs. Strategy If a finite state machine defines behavior of the object. every method on an object's interface operates differently after a change. the client controls the choice of behavior implementation but does not necessarily invoke it directly. the behavior is associated with one particular operation of the several in the responsibility of the object. the client can substitute implementations of an algorithm at any time in the life of the object. you view the selection of the algorithm as always dependent on the current algorithm and what just happened to the object. an object can have one of several behaviors, but the behavior never changes during the life of the object. then consider
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
