I watched a tutorial video about the State design pattern, but the video showed the pattern implementation in such a way that adding a new state would require changing the previous states and the class itself, in which these states are used, which, in my opinion, violates the OCP.
So I wrote a...