Skip to content

FabihaPritha/Design_Pattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎨 Design Patterns (Simplified with Java Code)

Welcome to the Design Patterns repository — a complete collection of all major design patterns explained with simple and clean Java code.

This repo is perfect for students, developers, and interviewees who want to understand, revise, or implement design patterns in real life.

📦 Covered Patterns

The patterns are categorized as per the Gang of Four (GoF) classification:

🧱 Creational Patterns

  1. Singleton
  2. Builder
  3. Factory Method
  4. Abstract Factory
  5. Prototype

🔄 Structural Patterns

  1. Adapter
  2. Bridge
  3. Composite
  4. Decorator
  5. Facade
  6. Flyweight
  7. Proxy

🧠 Behavioral Patterns

  1. Observer
  2. Command
  3. Chain of Responsibility
  4. Memento
  5. Iterator
  6. State
  7. Strategy
  8. Template Method
  9. Mediator
  10. Interpreter
  11. Visitor

Each pattern has:

  • ✅ A clear explanation
  • ✅ Use Case of each pattern
  • ✅ Real-world relatable examples (where applicable)
  • ✅ Simple Java code
  • ✅ Easy to run .java files

🚀 How to Use

  1. Clone the repo:

    git clone https://github.com/FabihaPritha/Design_Pattern.git
  2. Open in any IDE (IntelliJ IDEA, Eclipse, VS Code)

  3. Navigate to any pattern folder and run the .java files to understand how it works.

💡 Why This Repo?

To help developers learn and revise design patterns quickly, without digging through complex code.

🤝 Contributions

PRs (Pull Requests) are welcome! Feel free to fork and enhance the code, fix issues, or add more real-world examples.

⭐ If you found this helpful, don't forget to star the repo and share it with your friends!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages