I. Object
Object found
Check the object's Responsibilities
CRC-responsibilities-collaboration
Determine the object hierarchy
Object Property found
Object operations discovered
2. Design Guide
1. Overall understanding
2. Encapsulation
Maximize encapsulation minimize coupling isolation Gui
3. Design
Class must have a purpose and have their own responsibilities
A class has good properties: defines some operations for other classes, or uses itself as a structure for other classes.
Association and inheritance
Class cannot do anything: do not make a class too big
4. Inheritance
Is a test: All tests must pass the is a test to ensure that the base class can be transformed upwards by the quilt class.
Move properties and operations up as much as possible: common methods and Properties
Do not move attributes and methods too high: Do not put non-common attributes in the superclass.
Discover superclass
Iii. General Guide
Important name
One thing at a time
Don't re-invent the wheel
Not once
Simplicity
Your software will not disappear