Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Draw a sequence diagram corresponding to the collaboration diagram below: 2. Suppose that in a banking system a transfer is carried out in the
1. Draw a sequence diagram corresponding to the collaboration diagram below: 2. Suppose that in a banking system a transfer is carried out in the following way: a transfer object is created to control the interaction, and the two accounts and the amount to be transferred are then passed as parameters to a 'doTransfer()' method in the transfer object. Draw a collaboration diagram, based on based on the below object diagram, illustrating this interaction. Draw a sequence diagram showing the same interaction and discuss which is the most suitable diagram in this case. 3. Produce a sequence diagram showing a realization of the basic course of events for the Table Transfer use case (that is, transferring a customer from one table to another). Assume that a table number is provided as a parameter for a system message transfer( ) and show on your diagram how the table corresponding to this number is identified. 4. What is true regarding the classifier roles? a. Two classifier roles cannot have the same base class; b. A classifier role is a class; c. A classifier role is an object; d. A classifier role defines the role that objects can play in interactions; e. None of the above. 5. Given the below sequence diagram, what is the meaning of two '*'s? a. They mean that method m() contains a Vector/Array data structure; b. They mean there are zero or more associations roles involved; c. The '*' is the box means there are zero or more objects of class B involved, and the other one means method m( ) is called many times; d. The above sequence diagram is wrong as '*' appears twice in different contexts; e. None of the above. 6. Given the below UML diagram, which of the following statements are true? a. The stereotype > is incorrectly defined in the object diagram; b. The message passing ' f(a) ' is incorrectly defined in the class diagram; c. The generalization relationship between B and C is incorrectly specified; d. Object ' a ' is passed as a parameter of a message; e. None of the above
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started