Home
Flashcards
Preview
DesignPatterns.txt
Home
Get App
Take Quiz
Create
[HFDP pg 9]
Design principle: Separate aspects that ______ from what _________
vary,stays the same
[HFDP pg 11]
Design principle: Program to an ___________, not an implementation
interface
[HFDP pg 23]
What's usually better in OO design? Inheritance or Composition?
Composition
[HFDP pg 24]
What is the Stategy Pattern?
A family of algorithms that when encapsulated and made interchangeable, allow the algorithms to vary independently from clients that use it.
[HFDP pg 51]
What is the Observer Pattern
Defines a one-to-many dependency between object so that when one object changes state, all of its dependents are notified and updated automatically
[HFDP pg 86]
Fill in the blanks: Classes should be _____ for extension, but _______ for modification.
Open
Closed
[HFDP pg 91]
What does the Decorator Pattern do?
Attaches additional responsibilities to an object dynamically, providing a flexible alternative to subclassing for extending functionality.
---ANSWER---
---ANSWER---
Author
iranye
ID
222612
Card Set
DesignPatterns.txt
Description
Covers Items Discussed in Head First Design Patterns
Updated
2013-06-05T23:41:35Z
Home
Flashcards
Preview