Class diagram
lastmod 2018-08-17created 2015-03-099 edits
A class diagram shows how different entities (people, products, data) relate to one another. In other words, it represents the static structure of a system.
Domain Model Diagram
Class-diagram-domain-overview.png
Diagram of Implementation Classes
Class-diagram-implementation-elements.png
Class diagrams mapped to C/C++
Strong reference (persistent)
uml-class_diagram_01.png
Weak reference (temporary)
uml-class_diagram_02.png
Inheritance
uml-class_diagram_03.png
Inheritance of an interface (pure abstract class) looks like the figure below:
uml-class_diagram_06.png
Ownership
Strong ownership: when the whole is destroyed, the parts are destroyed with it:
uml-class_diagram_04.png
Weak ownership: independent of each other, with different lifecycles:
uml-class_diagram_05.png
Favorite site
- UML (Unified Modeling Language) class diagram notation
- UML (Unified Modeling Language) class diagram notation summary
- [Recommended] UML: Mapping class diagrams to source code 1
- UML in practice: class diagrams
- A close look at "relationships" in class design
- Clearing up confusion in Class Diagrams (Association, Composition, Aggregation, Realization)
- UML - Basics (basic notation and how to express relationships)
- [Recommended] UML Class and Object Diagrams Overview
References
-
UML_class_diagram_code_mapping_NEXTREE.pdf ↩
Pages that link here