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;
15 Cards in this Set
- Front
- Back
B contains A. B is: |
Creator |
|
B aggregates A. B is: |
Creator |
|
B keeps lis of A. B is: |
Creator |
|
B has constructors for A. B is: |
Creator |
|
This principle means that responsibility is best left to the one who knows best. |
Information Expert |
|
This principle supports low dependency and low-change impacts as well as increases re-use. |
Low coupling |
|
Common forms of coupling (5): |
- x has an attribute of y - x is direct or indirect subclass of y - x has method w/parameter, local variable or return type of y - x implements interface of y |
|
Four forms of visibility |
1) Attribute visibility 2) Parameter visibility 3) Local visibility 4) Global visibility |
|
This principle allows you to handle alternatives based on type. |
Polymorphism |
|
This principle uses <<interface>> and <<extends>> |
Polymorphism |
|
This principle means creating an artificial or convenience class that does not represent a problem domain concept. |
Pure fabrication |
|
This principle allows you to avoid direct coupling between two or more things. |
Indirection |
|
This principle calls for identifying points of instability and assigning responsibilities to create a stable "interface" around them. |
Protected variations |
|
If it works with a base class it should work with its subclasses without surprise. |
Liskov substitution principle |
|
Don't talk to strangers |
Law of Demeter |