All challenges
Multiple ChoiceIntermediate 45s

Strategy vs State

Which distinction is correct?
Options
  1. 1State is a structural pattern while Strategy is really a creational pattern intended for object setup
  2. 2They are effectively the same pattern published under two different, well-known catalog names
  3. 3Strategy requires concrete subclasses to work whereas State does not need any subclasses at all
  4. 4Strategy selects an algorithm externally; State changes the object's behavior as its internal state changes

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle