In class diagrams, a relationship is the connection between C#
classes and other elements.
You can use several relationships to define the structure between C# classes:
- Association relationships imply that instances of one class connect to
instances of another class.
- Dependency relationships imply that a change to one class might affect
another class.
- Generalization relationships imply that one class is a specialization
of another class.
- Realization relationships imply that one class provides a specification
and the other class implements the specification.
You can also use note attachment relationships to provide more information
about diagrams, diagram elements, and connectors.