Skip to content

szeyick/DesignPatterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Design Patterns

Welcome to the design patterns repository.

This repository contains notes and code examples (included in the projects readMe) on various computing design patterns. Each project is inspired by the text Design Patterns : Elements of Reusable Object-Orientated Software.

The notes and accompanying code examples are a summary and spin on the patterns described in the book. Each code example contains a basic situation where the particular design pattern can be applied.

The code provided is written in Java.

Pattern Types

Creational

Structural

  • Adapter Pattern Convert the interface of one class to another to allow classes that are incompatible to work together.
  • Bridge Pattern - Providing an interface bridge that allows an abstraction to refer to its implementation through the interface.
  • Composite Pattern - Provide an interface that allows individual objects and groups of objects to appear the same.
  • Decorator Pattern - Provide additional behaviour to an object dynamically. The object is invoked by the delegate.
  • Facade Pattern - Provide a common interface to allow clients to access different components without directly referencing them.
  • Flyweight Pattern - Re-use objects by re-loading data into the object when required by different contexts.
  • Proxy Pattern - Provide a placeholder (proxy) object that looks like the real object. The proxy instantiates the real object when required, useful for expensive objects.

About

Example code for design patterns.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors