• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

IBM ICE Question - Use Cases

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which of the following are TRUE about services resulting from use cases?

a) New requirements in use cases generally result in one or more public methods in a domain model class.

b) Private methods are required by the system's use cases.

c) Use cases drive the design of interaction diagrams, which in turn define public methods in domain model classes.

d) Each alternative scenario of a use case generally results in a new association between classes.

this question has 2 correct choices.
I answered a & c... but i guess d is also right..pls help
 
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I chose c and d. You cant infer public methods in a domain model class directly from new requirements. Compare a with c. Choice c is more reasonable.
 
Balbir Singh
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Doug,
(c) is definately right as stated on Page 75 of Larman " Use-Case realization drives the design. That is, the team designs collaborating objects and subsystems in order to perform or realize the use cases."
But I am confused between (a) and (d) since both of them use the term "generally results".
 
Doug Wang
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Balbir,
Another discussion on the same question is going. Two guys agree with me. One is right behind you(but not so confident).
 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Requirements in USE CASE generally MEANS public methods in a domain model, though we don't need to highlight it in there.
So, I go to (a) and (c).
Yingtang
[ March 25, 2002: Message edited by: Yingtang Tang ]
 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All
Yingtang is right, let's exam a very simple example, we will find out.
Customer buy goods, he/she can pay in cash or credit card. in this case, We may use adaptor pattern as a solution, then we do not need a additional public method in our domain.
Payment---------more alternative Payment
/ \
/ \
CashPayment CreditCardPayment
our Domain only needs deal with Payment.
I hope It will help someone who chosen "D"
 
This. Exactly this. This is what my therapist has been talking about. And now with a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic