This is an old revision of the document!

Gang of four

  • Class pattern
  • Object pattern
  • Abstract factory pattern: Group of factories
  • Prototype pattern: Clone method/interface
  • Singleton pattern
  • Multiton pattern (flyweight): Multiple objects based on key (getInstance(key), using a hashmap)

Class/object composition

  • Adapter/Wrapper: Adapter realizes interfaces, uses method of external class
  • Bridge: Hierarchy of abstractions and implementations
  • Facade: Unified, simplified interface to complex operations involving multiple classes
  • Decorator: Dynamically add/remove methods to an object
  • Flyweight: Large number of object required, where information is shared
  • Composite: Tree-structure to represent part-whole hierarchies (treat part and whole uniformly)
  • Proxy: Class acting as interface to something else.
  • design_patterns/gof.1573333371.txt.gz
  • Last modified: 2019/11/09 22:02
  • by phreazer