Curriculum design patterns Design patterns succinctly 10-2 appearance mode coding

1 Code Walkthrough

1.1 Code drill 1 (without using appearance model)

1.2 Code walkthrough 2 (using appearance model)

 

 

1 Code Walkthrough

1.1 Code drill 1 (without using appearance model)

demand:

Wood redeem gift network has the function of the design to be verified three steps:

a qualifications check system, Wood is a member of the network.

b integral system, which put the individual points of acquisition expenses, the user needs to come up with integral current points and the gifts needed to compare

c logistics system, if ab met, the successful return and returns an order number.

 

focus point:

 

Test categories:

 

Entity classes:

Eligibility verification system class:

Integral Systems categories:

Logistics categories:

Print Results:

 

1.2 Code walkthrough 2 (using appearance model)

Guess you like

Origin www.cnblogs.com/1446358788-qq/p/11479311.html