
274 ◾ Software Engineering: The Current Practice
+setInventory() : void
+getInventory() : int
+addToInventory() : int
+removeFromInventory() : void
Inventory
+getPrice() : double
+getTax() : double
-inventory : int
-price : double
-tax : double
Item
+getBalance() : double
+processSale() : double
+resetStore() : void
+calcSubTotal() : double
+calcTotal() : double
+getInventory() : int
+setInventory() : void
+addToInventory() : void
+removeFromInventory() : void
+getPrice() : double
+getTax() : double
+main() : void
-balance : double
-inventory : int
-price : double
-tax : double
Store
Figure 18.2 PoS after prefactoring.
Store
+setInventory() : void
+getInventory() : int ...