Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Name the missing classes....a question

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Enjoy the full beauty of the english language. Embedded in this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic