Skip to content

Commit d8bd6de

Browse files
Updated Content
1 parent 167f7c3 commit d8bd6de

3 files changed

Lines changed: 25 additions & 2 deletions

File tree

content/Strategy Pattern.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#behavioral
2+
## Definition
3+
4+
It Defines a family of algorithms encapsulates each one, and makes them interchangeable. Strategy Lets the algorithms vary independently from clients that use it.
5+
6+
## Real World Analogy
7+

content/Strategy.md

Whitespace-only changes.

content/index.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,24 @@ title: Java Design Patterns
33
---
44
# Java Design Patterns
55

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+
---
616
## Contents:
717

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.)
23+
24+
25+
926

10-
### Author: Prathamesh Dhande

0 commit comments

Comments
 (0)