Take Up Code

78: Design Patterns: State.

08:21 | Mar 24th, 2016

The state behavioral pattern allows you to simplify your code when you have different modes of operation. This is really just a specific application of polymorphism. You have a class that needs to performs some action in one of several different ways...Show More