Skip to content

Commit fa980bc

Browse files
State Pattern Added
1 parent 5dc0ae3 commit fa980bc

File tree

5 files changed

+511
-1
lines changed

5 files changed

+511
-1
lines changed

content/Glossary.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,7 @@ The **Facade Pattern** is a structural design pattern that provides a simplified
2626
The **Iterator Pattern** is a behavioral design pattern that provides a way to access elements of a collection sequentially without exposing its underlying representation, allowing uniform traversal of different collection types.
2727
### 11. Composite Pattern
2828
The **Composite Pattern** is a structural design pattern that lets you compose objects into tree-like structures to represent part-whole hierarchies, allowing clients to treat individual objects and groups of objects uniformly.
29+
### 12. State Pattern
30+
The **State Pattern** is a behavioral design pattern that allows an object to change its behavior when its internal state changes. Instead of using large conditionals to determine behavior, the pattern encapsulates state-specific logic into separate classes.
2931

3032
_more Coming soon_
125 KB
Loading

content/Images/state_design.png

86 KB
Loading

0 commit comments

Comments
 (0)