In class diagrams, a relationship is the connection between C/C++ classes and other elements.
You can use several relationships to define the structure between C/C++ classes:
You can also use note attachment relationships to provide more information about diagrams, diagram elements, and connectors.
Association relationships
In class diagrams, an association is a structural relationship that indicates that objects of one classifier, such as a class and interface, are connected and can navigate to objects of another classifier.Dependency relationships
In class diagrams, a dependency relationship indicates that a change to one class, the supplier, might cause a change in the other class, the consumer. The supplier is independent because a change in the consumer does not affect the supplier.Generalization relationships
In class diagrams, a generalization relationship, which is also called an inheritance or an is-a relationship, implies that a specialized, child, class is based on a general, parent, class.Manifestation relationships
In class diagrams of C/C++ elements, a manifestation relationship exists between a class and a class definition when the class definition is contained in a C/C++ header file.Owned element association relationships
In class diagrams, an owned element association relationship is a type of association that dictates ownership.Permission relationships
In class diagrams, a permission relationship is a relationship in which a class allows another class to have visibility to its encapsulated attributes or operations.Abstract generalization
In class diagrams, an abstract generalization is a dependency relationship in which a mapping exists between the parent and the child.Adornments for unresolved references
In class diagrams, C/C++ classes and other elements that belong to different applications or projects that are not currently loaded in the workspace can result in an unresolved reference.
Parent topic: Class diagrams and diagram elements
Related concepts
Classes
Class diagrams
Attributes
Operations
Multiplicity
Visibility
Related tasks
Showing related C/C++ diagram elements based on relationships
Managing relationships between C/C++ elements
Showing and hiding relationships
Showing attributes as associations
Showing associations as attributes
Showing operation signatures of classifiers