Pattern Catalog
Pattern Name Intent More Info
Decorator or Wrapper Also known as wrapper, is used to extend the functionality of an object dynamically without having to change the original class source or using inheritance. Same as Wrapper
Abstract Factory or Kit Provide an interface for creating families of related or dependent objects without specifying their concrete classes
Builder Moves the (step-by-step) construction logic out of the object class to a separate class referred to as a builder; managed by a director
Factory Method or Virtual Constructor Recommends encapsulating the functionality required to select and instantiate an appropriate sub-class, inside a designated method referred to as a factory method
Singleton Having only one instance of a class.
Adapter change the interface of a class in order to be usable for a client by defining a wrapper class (adapter) around the object with the incompatible interface (adaptee)
Bridge is used to separate the interface from its implementation so that both can vary independently (extension without subclassing)
Composite designing a common interface for both individual and composite components so that client programs can view both the individual components and groups of components uniformly
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License