This repository contains simple programs that demonstrate different design patterns. Each pattern has its own folder with a small program written in C++ to show how the pattern works.
The goal of this project is to learn and practice design patterns by creating clear and simple examples. These examples can help others understand how to use design patterns in their own projects.
The repository is organized by design patterns. Each folder is named after a specific pattern.
Here are some of the design patterns included in this repository:
-
Creational Patterns:
-
Structural Patterns:
-
Behavioral Patterns:
-
Clone the repository:
git clone https://github.com/dimabeliuga/DesignPatterns.git
-
Navigate to the folder of the design pattern you want to explore:
cd DesignPatterns/[PatternName] -
Build the program using CMake.
-
Check the code and comments to understand how the pattern is implemented.
If you want to contribute:
- Fork the repository.
- Create a new branch for your changes.
- Add or improve examples of design patterns.
- Submit a pull request with a clear description of your changes.