It is not mandatory for every class to appear.The object is represented by specifying their name and class.In the collaboration diagram, objects are utilized in the following ways: Objects: The representation of an object is done by an object symbol with its name and class underlined, separated by a colon.Notations of a Collaboration Diagramįollowing are the components of a component diagram that are enlisted below: The collaboration diagram, which is also known as a communication diagram, is used to portray the object's architecture in the system. Multiple objects present in the system are connected to each other. Instead of showing the flow of messages, it depicts the architecture of the object residing in the system as it is based on object-oriented programming. Both the sequence and the collaboration diagrams represent the same information but differently. The collaboration diagram is used to show the relationship between the objects in a system.