Design Patterns - Bridge

Design Patterns Category Design Patterns Index 7. Bridge Intent: Decouple an abstraction from its implementation so that the two can vary independently. Also Known As Handle/Body Applicability: you want to avoid a permanent binding between an abstraction and its implementation....

Design Patterns - Adapter

Design Patterns Category Design Patterns Index 6. Adapter Intent: Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn’t otherwise because of incompatible interfaces. Applicability: you want to use an existing class,...

Design Patterns - Singleton

Design Patterns Category Design Patterns Index 5. Singleton Simple Concept, Complex Implementation Intent: Ensure a class only has one instance, and provide a global point of access to it. Applicability: there must be exactly one instance of a class, and...

Design Patterns - Prototype

Design Patterns Category Design Patterns Index 4. Prototype Intent: Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype. Applicability: when the classes to instantiate are specified at run-time, for example,...

Design Patterns - Factory Method

Design Patterns Category Design Patterns Index 3. Factory Method Intent: Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses. Also Known As: Virtual Constructor Applicability:...