How Design Patterns Solve Problems Flashcards
How might a design pattern help find appropriate objects?
Identifies abstractions and objects that represent them
How might a design pattern help determine object granularity?
Supporting lots of objects or decomposing an object into smaller objects
How might design patterns help specify object interfaces?
Patterns help by identifying key elements and the data types that get sent to the interfaces. Also, the relationships between the interfaces.
How might patterns help with specifying object implementations?
Patterns specify what to implement and abstract the creation process so the program is written to the interfaces, not the implementations
How could patterns help with putting reuse mechanisms to work?
Patterns explicitly distinguish between run-time and compile-time structures and avoid over-using inheritance
How might patterns help design for change?
Patterns provide robust implementation by letting one aspect independently vary from another