正在加载图片...
实现的顺序 ●●●●● ●●●● ●●● ●●● ●●●● 。类的实现通常按照从耦合度低到耦合度高的顺 序来完成。 address: Address name: Text ProductDescription addsale() Productcatalog description: Text price: Money temID: ItemID getProductDesc() Sale Register is Complete: Boolean time: Date Time SalesLineltem endscale 1 becomecompleteo makePayment(.) getsubtotalo make NewSaleO make Payment(.) getTotalo Payment d amount: Money实现的顺序 ⚫ 类的实现通常按照从耦合度低到耦合度高的顺 序来完成。 SalesLineItem quantity : Integer getSubtotal() ProductCatalog ... getProductDesc(...) ProductDescription description : Text price : Money itemID : ItemID ... Store address : Address name : Text addSale(...) Payment amount : Money ... 1..* 1..* Register ... endSale() enterItem(...) makeNewSale() makePayment(...) Sale isComplete : Boolean time : DateTime becomeComplete() makeLineItem(...) makePayment(...) getTotal() ... 1 1 1 1 1 1 * 1 2 3 4 5 6 7
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有