Refer to the exhibit to answer the question. Which of the following is the correct description of the sequence diagram? When an instance of a: a) Person is asked for its assets, it sums the balances of each of its asset Accounts. b) Customer is asked for its assets, it sums the balances of each of its asset Accounts. c) Person is asked for its assets, it returns the balance of its asset Account. d) Customer is asked for its assets, it returns the balance of its asset Account. Single Select - Please select the best answer (one and only one choice must be selected). a i think b) is correct, since Customer is object and Person is class. Am I right?
SCJP<br />SCJD<br />IBM 486
John Lee
Ranch Hand
Joined: Aug 05, 2001
Posts: 2545
posted
0
Originally posted by xjl xu: Refer to the exhibit to answer the question. Which of the following is the correct description of the sequence diagram? When an instance of a: a) Person is asked for its assets, it sums the balances of each of its asset Accounts. b) Customer is asked for its assets, it sums the balances of each of its asset Accounts. c) Person is asked for its assets, it returns the balance of its asset Account. d) Customer is asked for its assets, it returns the balance of its asset Account. Single Select - Please select the best answer (one and only one choice must be selected). a i think b) is correct, since Customer is object and Person is class. Am I right?
Hi: Customer and Person can both be class and object. Obviously, here you need to differ customer and person, because customer asks for account information and person is asked by costumer about account information. HTH.