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.

Get hands-on with 1200+ tech skills courses.