You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It Defines a family of algorithms encapsulates each one, and makes them interchangeable. Strategy Lets the algorithms vary independently from clients that use it.
Copy file name to clipboardExpand all lines: content/index.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,24 @@ title: Java Design Patterns
3
3
---
4
4
# Java Design Patterns
5
5
6
+
### What is Design Pattern ?
7
+
8
+
**Design patterns** are typical solutions to commonly occurring problems in software design. They are like pre-made blueprints that you can customize to solve a recurring design problem in your code.
9
+
10
+
## Three Main Patterns
11
+
12
+
-**Creational patterns** provide object creation mechanisms that increase flexibility and reuse of existing code.
13
+
-**Structural patterns** explain how to assemble objects and classes into larger structures, while keeping these structures flexible and efficient.
14
+
-**Behavioral patterns** take care of effective communication and the assignment of responsibilities between objects.
15
+
---
6
16
## Contents:
7
17
8
-
1.[Strategy Pattern](./docs/Strategy.md)
18
+
1.[[Strategy Pattern]]
19
+
20
+
---
21
+
> [!Note]
22
+
> All the Patterns and code Examples are taken from the Book titled [Head First Design Patterns](https://www.oreilly.com/library/view/head-first-design/9781492077992/?_gl=1*xxiqn6*_ga*MTk1NDU5NDczNi4xNzM2MjcwMTgz*_ga_092EL089CH*MTczNzA0OTQ2MC4yLjAuMTczNzA0OTQ2My41Ny4wLjA.)
0 commit comments