Skip to content

SaiD-MH/Java-Design-Pattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

GoF Design Patterns Repository

Welcome to the GoF Design Patterns repository! This repository contains examples and implementations of the Gang of Four design patterns in various programming languages.

Table of Contents

  1. Introduction
  2. Design Patterns
  3. Languages
  4. How to Use
  5. Contributing
  6. License

Introduction

The Gang of Four (GoF) design patterns are a set of 23 software design patterns that describe how to solve recurring design problems in object-oriented software development. This repository aims to provide clear and concise examples of each design pattern implemented in various programming languages.

Design Patterns

The repository covers three categories of design patterns:

Creational Patterns

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

Structural Patterns

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

Behavioral Patterns

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

Each design pattern is organized in its own Package Category ex: src/BehaviourPatterns/memento

Languages

The examples are provided in the following programming languages:

  • Java

How to Use

Clone the repository to your local machine using the following command:

https://github.com/SaiD-MH/Java-Design-Pattern/tree/main

Contributing

Contributions are welcome! If you'd like to contribute to this repository by adding new design patterns, improving existing examples, or fixing bugs, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/your-feature).
  3. Make your changes.
  4. Commit your changes (git commit -am 'Add new pattern').
  5. Push to the branch (git push origin feature/your-feature).
  6. Create a new Pull Request.

Please ensure that your code follows the repository's coding standards and includes appropriate documentation.

About

GOF JAVA DESIGN PATTERN

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages