Sun Certified Java Programmer<BR>Oracle Certified DBA
Originally posted by Madhusudan Karody:
Could anyone explain what the correct answer the question mentioned below?? I thought the answer was c.
Refer to the Figure http://certify.torolab.ibm.com/figures/test486F9.gif.
Consider the scenario that eStore.com sells small appliances over the Internet. Currently, the store's catalog includes over 50 appliances from 10 different suppliers. A partial class diagram is shown in Figure Sample 1. If there is a new requirement to restock the warehouse automatically as products are sold, how is the new requirement BEST handled?
a)
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.
b)
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.
c)
Add a deliver() method to the Supplier class that uses the
InventoryProduct's amountOnHand attribute to maintain the
InventoryProducts in the warehouse.
d)
Add "reorderLevel" and "reorderQuantity" to InventoryProduct.
Create a Warehouse class that monitors the InventoryProducts'
"amountOnHand", generating an order as levels drop below a
"reorderQuantity".
Thanks
Madhu
Originally posted by Desai Sandeep:
Senthil,
I am also with A.But I think you have reasons other than what I have stated.Do you agree/disagree with my reasoning?Could you elaborate on what are your views?
Thanks in advance,
Sandeep
[This message has been edited by Desai Sandeep (edited May 22, 2001).]
Thank you.<br /> <br />- Jess Sie<br /> <a href="mailto:jess@see-consulting.com" rel="nofollow">jess@see-consulting.com</a>
SCPJ2
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |