Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
9 Cards in this Set
- Front
- Back
Factory |
We create object without exposing the creation logic to the client and refer to the newly created object using a common interface |
|
Abstract factory |
Factory of factories. An interface is responsible for creating a factory of related objects without explicitly specifying their classes. Each generated factory can give the objects as per the factory pattern. |
|
Singleton |
A single class responsible to create an object while making sure that only a single object gets created. Class provides access to the only object and doesn't need to instantiate the object of the class |
|
Composite |
Treat a group of objects in a similar way as a single object. Tree structure of group of objects. Creates a class that contains group of its own objects and provides ways to modify them. |
|
Proxy |
A class represents functionality of another class. We create objects having original object to interface its functionality to the outer world |
|
Facade |
Hides complexities of the system and provides an interface to the client which can access the system. Involves a single class which provides simplified methods required by client and delegates calls to methods of existing system classes |
|
Mediator |
Used to reduce communication complexities between multiple objects or classes. Provides a mediator class which normally handles all the communications between different classes and supports easy maintenance of code by loose coupling |
|
Observer |
Used when there is a one to many relationship between objects such as if one object is modified, its dependent objects are to be notified automatically |
|
Template |
An abstract class exposes defined ways/templates to execute its methods. It's subclasses can override the method implementation as per need but the invocation is to be the same way as defined by an abstract class |