Registered: Sep 2002
Location: San Diego, CA
Troublesome ICE Question - Confusing Expert GRASP Pattern ?
I finally took the ICE test for the last time (I take the real one in two weeks) and scored a 80%. After, reviewing some of the questions I got wrong, I thought I might be missing something where I clearly thought my answer was correct. I'll post these questions individually.
As always, your viewpoint is appreciated!
Here's the third one:
There are two new requirements for IBMStore.com: discounts for damaged goods, and searches by size and color. Using Figure Sample 2, which of the following is the BEST way to extend the class diagram to handle these requirements?
a) Extend the InventoryProduct class to handle the new requirements.
b) Create a new class "PhysicalProduct" that represents an actual product in the warehouse. Associate the PhysicalProduct with its related InventoryProduct.
c) Add new capabilities to the Inventory class for the management of its Products.
d) No changes are needed due to these requirements.
Single Select - Please select the best answer (one and only one choice must be selected).
If there is a new requirement to re-stock the warehouse automatically as products are sold, how is the new requirement BEST handled?
a) Add a deliver() method to the Supplier class that uses the InventoryProduct's amountOnHand attribute to maintain the InventoryProducts in the warehouse.
b) Add "reorderLevel" and "reorderQuantity" to InventoryProduct. Create a Warehouse class that monitors the InventoryProducts' "amountOnHand", generating an order as levels drop below a "reorderQuantity".
c) Add "reorderLevel" and "reorderQuantity" attributes used by a new deplete() method in the Inventory class. Use these to generate new orders as InventoryProducts are sold.
d) Add "reorderLevel" and "reorderQuantity" attributes used by a new deplete() method in the InventoryProduct class. Use these to generate new orders as InventoryProducts are sold.
Single Select - Please select the best answer (one and only one choice must be selected.
Answer: B,C respectively. It seems by Expert this stuff should belong in the class that "knows" about it. I can see the value in the correct answers, but can someone explain the value. Expecially, for the first question. It seems a weak arguement to move some stuff to a "Physical Product" class, as opposed to say "non-physical." Why not just keep it with Inventory product?
Report this post to a moderator | IP: Logged