1 ???????? Object-oriented analysis and design
Objects are things that define good responsibilities.
Objects have the capability of your responsibilities.
Package means hidden by the following objects:
L ???????? data hide
l ???????? class hide (by inheritance in the base class or interface)
l ???????? to hide
Analyze the behavior and data of changes through the common point / variation point analysis method.
Interface for design.
Take "inheritance" as follows:
l ???????? Inheritance can be used as a method of implementing concept changes, but cannot be used as a method of generating a particular case of existing objects.
Keep the independence (non-coupled) of certain variations in the class and other variation points.
Stick to loose coupling.
Adhere to high cohesion.
Try to use and use only one rule (protocol, algorithm) when the same function is responsible.
Decompose the problem domain into a collection of responsibilities of the relevant object.
Use the mode to use mode to system design.
2 ????????? In the exam mode
u ??????? What is hidden in this pattern?
- We can make changes to them.
u ??????? What is the common point?
- This can help us identify them.
u ??????? What is the responsibility of the object in this mode?
- This will help us decompose the duties of the problem domain.
u ??????? What is the relationship between the object in this mode?
- This will give us enough information to represent the object in the problem domain.
u ??????? How does this mode show associated design ideas?
- This will help us understand excellent design of this mode.