Chapter 13 Flashcards
Purpose of Design Patterns
Make it easier to reuse successful Object-Oriented Designs
Purpose of Abstract Factory
Create families of related or dependent objects without specifying their concrete class
Purpose of Factory Method
Define an interface for creating an object, but let subclasses decide which class to instantiate.
Purpose of Builder pattern
Separate the construction of a complex object from its representation.
Purpose of Prototype Pattern
Create a prototypical instance and create new objects by copying this prototype
Purpose of Singleton Pattern
Ensure a class only has one instance and provide a global point of access to it
Purpose of Adapter Pattern
Convert the interface of a class into another interface clients expect.
Purpose of Composite Pattern
Compose objects into tree structures to represent part-whole hierarchies.
Purpose of Proxy Pattern
Provide a surrogate or placeholder for another object to control access to it