Example
In this lesson, we will explain an example for implementing state machines.
We'll cover the following...
Identifying and exploiting commonality is fundamental to software design. By encapsulating and reusing common functionality, the quality of the design rises above code duplication and dreaded anti-patterns like copy-paste. This lesson dives into a design pattern that adds flexibility to common software entities by letting clients customize and extend them without modifying existing code.
Control coupled customers
To attract and keep customers, many companies offer some kind of bonus system. In our example, a customer is placed in one of three ...