a)XXX = DeliverySchedule, YYY = Supplier b)XXX = Supplier, YYY = DeliverySchedule c)XXX = PreferredSupplier, YYY = DeliverySchedule d) XXX = DeliverySchedule, XXX = PreferredSupplier YYY should be DeliverySchedule. XXX should be either Supplier or PreferedSupplier. But, since it is generalization and not Interface and since Supplier is not abstract, I chose (b) to be the correct answer. Please comment.
MM Koppula<br />SCJP2<br />Object Oriented Analysis and Design with UML (IBM)
(c) is incorrect, since PreferredSupplier class is a specialization of Supplier, it cannot be XXX. (d) is also incorrect since there is no YYY option and even if we assume that the second portion of the answer is YYY, it is wrong, since DeliverySchedule is YYY. (a) is incorrect, since DeliverySchedule is related to Supplier thru Composition and Supplier is related to InventoryProduct thru association and following Sequence diagram, XXX should be Supplier & YYY should be DeliverySchedule. In my opinion, (b) is the correct answer. Please comment, if you think the answer/reasoning is different.
Enjoy the full beauty of the english language. Embedded in this tiny ad: