Skip to content

Contains practical examples and implementations of software design patterns in Java. Ideal for learning and applying design principles in real-world scenarios.

Notifications You must be signed in to change notification settings

raisalomao/design-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Design Patterns

This project contains practical implementations of the most common and useful design patterns using the Java programming language.

Overview

Design patterns are proven solutions to common software design problems. This repository demonstrates patterns categorized by the Gang of Four (GoF) into:

  • Creational Patterns
  • Structural Patterns
  • Behavioral Patterns

Each pattern includes:

  • A brief description
  • Source code examples
  • UML-style comments (when applicable)
  • A simple client/demo to illustrate usage

Creational Patterns

  • Singleton
    Ensures a class has only one instance and provides a global access point to it.

  • Prototype
    Creates object copies efficiently using a cloning interface/abstract class.

  • Factory Method
    Delegates object creation to subclasses through a common interface.

  • Abstract Factory
    Provides an interface for creating families of related objects without specifying their concrete classes.

  • Builder
    Separates complex object construction from its representation.

Structural Patterns

(Coming soon)


Behavioral Patterns

(Coming soon)


How to Run

Clone the repository:

git clone https://github.com/raisalomao/design-patterns.git

About

Contains practical examples and implementations of software design patterns in Java. Ideal for learning and applying design principles in real-world scenarios.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages