208k views
4 votes
How are the destruction of temporary objects shown on sequence diagrams?

1) With a cross (X) at the end of the lifeline
2) With a tick (√) at the end of the lifeline
3) With a question mark (?) at the end of the lifeline
4) With a circle (O) at the end of the lifeline

1 Answer

1 vote

Final answer:

In sequence diagrams, a cross (X) at the end of the lifeline signifies the destruction of temporary objects, indicating that the object's lifetime has concluded and the object is destroyed.

Step-by-step explanation:

On sequence diagrams, the destruction of temporary objects is commonly illustrated by placing a cross (X) at the end of the object's lifeline. This visual representation indicates that the object's lifetime has ended and that it no longer exists in the context of the sequence being modeled. For instance, if an object is created within a certain scope and is no longer needed beyond that scope, it can be destroyed, and this destruction is shown with an X marking on the lifeline of the object in the sequence diagram.

User Soung
by
8.6k points