Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 236 Bytes

README.md

File metadata and controls

5 lines (3 loc) · 236 Bytes

State

Purpose

Encapsulate varying behavior for the same routine based on an object's state. This can be a cleaner way for an object to change its behavior at runtime without resorting to large monolithic conditional statements.