• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Name the missing classes....a question

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Refer to the exhibits to answer the question. What are the names of missing classes XXX and YYY in exhibit below ? (choose one)
https://certify.torolab.ibm.com/figures/486fig5603137.gif

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.
 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
(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.
 
Do Re Mi Fa So La Tiny Ad
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic