CS 3371 - March 29, 2000
- Write a flow of events description for this collaboration diagram:

- Use a nested number scheme to renumber the messages on the collaboration diagram of question 1 to show that :B sends msgE in order to be able to respond to msgW, and that :C first sends msgT and then sends msgY before responding to msgR
.
- Develop a sequence diagram modeling the interaction from the collaboration
diagram of question 1.
A diagram based on
questions 1 and 2
- The note on the collaboration diagram says that this is not a good design. Which interactions make us suspicious of the design?
- Suppose that an object O contains an object P, and that O no longer needs P. How is P destroyed ...
- In C++?
- In Java?
- Develop a collaboration diagram with nested numbering modeling a scenario in which:
- An actor sends a message to an object of class O.
- O creates a new object of class P.
- P sends a message requesting an integer value, say n, to an object of class Q.
- After receiving the response from Q, if n is not zero, P sends a message to O.
- O destroys P.
- Develop a sequence diagram modeling the scenario from question 5.