Skip to content

SST-Bappu/OOP-Design-Patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎭 Design Patterns Collection

πŸ“Œ Introduction

This repository contains implementations of various design patterns. Each pattern is explained with a real-world example and structured code.


πŸ“‚ OOP Design Patterns

  1. Strategy Pattern

    • Used for choosing a behavior dynamically at runtime.
    • Example: Payment processing system with multiple payment methods (Credit Card, PayPal, Bitcoin).
  2. Observer Pattern

    • Used when an object should notify multiple subscribers about changes.
    • Example: News subscription system where users receive updates when a new article is published.
  3. Factory Pattern

    • Used for creating objects without specifying their exact class.
    • Example: A notification system to notify users via different mediums like Email, WhatsApp, or PhoneText dynamically.
  4. Builder Pattern

    • Used for constructing complex objects step-by-step.
    • Example: Meal Builder, where users can customize their burger, drink, and extras.

πŸš€ How to Use

1️⃣ Navigate to any pattern directory to find explanations, code, and examples.
2️⃣ Each pattern contains a README.md with details.
3️⃣ Run the provided Python scripts (main.py) to see the pattern in action.


πŸ› οΈ Next Steps

  • More patterns will be added soon!
  • Contributions are welcome to expand the repository.

πŸ“Œ Contact & Contributions

Feel free to fork, modify, or contribute to this project! If you have suggestions, open an issue or pull request.


πŸš€ Happy Coding! πŸš€

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages