Test 3 Flashcards
Briefly describe abstract factory
Provides a way to create an instance of several families of classes.
Briefly describe factory method
Provides a way to create an instance of several derived classes.
Briefly describe singleton
Provides a way to ensure that only a single instance of a class may exist.
Briefly describe composite
This pattern is used when the model of your application can be represented as a tree. It lets you run a behavior recursively over all components of an object tree.
Briefly describe facade
Provides a simple interface to a complex subsystem which contains lots of moving parts.
Briefly describe proxy
Solves the problem of having an object that consumes a lot of system resources.
Briefly describe iterator
Provides a way of accessing the elements of a collection, no matter how the collection is structured.
Briefly describe observer
Provides a way to report an object’s state to other objects that are observing it.
Briefly describe state
Provides a way to identify all possible states of an object (states), extract all state-specific behaviors into these states, and allow transitions to different states. Essentially, this pattern models a state machine.