If you can't read please download the document
Upload
doque
View
269
Download
10
Embed Size (px)
Citation preview
LECTURE
99
. .
, CSE 4039
4 4
Code Complete( 2), , , 2005. p , , ,Chapter 5, pp129-196.
, CSE 4039 2
, , ,
, CSE 4039 3
, CSE 4039 4
, ,
?? , [Yourdon, Constantine, 1979]
(plug-in)
, CSE 4039 5
, CSE 4039 6
, CSE 4039 7
MVC MVC
MVCMVC :
:
:
,
, CSE 4039 8
CORBA Java RMI
, CSE 4039 9
: OSI
, CSE 4039 10
Unix
, CSE 4039 11
, CSE 4039 12
, CSE 4039 13
, CSE 4039 14
? ?
, CSE 4039 15
? ?
, CSE 4039 16
? ?
, CSE 4039 17
(cohesion) (cohesion)
, CSE 4039 18
? ?
, CSE 4039 19
(right answer) ( g )
Code Complete 9 1.
2 2.
3.
4.
5.
6. ,
7 7. .
8. .
9. .
, CSE 4039 20
class Fruit { class Fruit { ////...
} class Apple extends Fruit {
//... } class Apple {
i t F it f it F it()class Apple extends Fruit { //...
}
private Fruit fruit = new Fruit(); //...
} }
, CSE 4039 21
(Composition)p
( )
is-a . is a
, CSE 4039 22
UML
UML
i t import
, CSE 4039 23
(to Business
S t )
Clerk User Interface
Customer
Business
System Client
System)
myGUI Java.awt
System Client
RentalUI
, CSE 4039 24
:
Crossing Crossing
Destination
Direction Direction
Location GPS Location GPS
PlanningService ,
RouteAssistant Direction
Segment
Trip Direction
, CSE 4039
Trip Direction
25
.
: (iterator)
: (factory)
, CSE 4039 26
1990 (Gamma, Helm, Johnson,1990 (Gamma, Helm, Johnson, Vlissides)
1995
Design Patterns: Elements of Reusable Object-Oriented Software
, CSE 4039 27
, ,
:
, CSE 4039 28
.
SW SW
, CSE 4039 29
http://blog.naver.com/bestymw
http://sourcemaking com/design patternshttp://sourcemaking.com/design_patterns
, CSE 4039 30