UML Short Description

Below is a mapping between program elements in C# and their corresponding UML diagram elements, along with the meaning of each.


UML Elements Table

Program elementDiagram elementMeaning
ClassClassType and parameters specified when important; access indicated by + (public), (private), # (protected).
InterfaceInterfaceName starts with I. Also used for abstract classes.
NoteNoteAny descriptive text.
PackagePackageGrouping of classes and interfaces.
InheritanceInheritanceB inherits from A.
RealizationRealizationB implements A.
AssociationAssociationA and B call and access each other’s elements.
Association (one way)Association One WayA can call and access B‘s elements, but not vice versa.
AggregationAggregationA has a B, and B can outlive A.
CompositionCompositionA has a B and B depends on A.

📖 The content belongs to the book C# 3.0 Design Patterns – Judith Bishop