Skip to content
Search

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

// TODO: EDIT!!

Weak reference (temporary)

uml-class_diagram_02.png

// TODO: EDIT!!

Inheritance

uml-class_diagram_03.png

class A {
};
class B :  public A {
};
class C : public A {
};

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

// TODO: EDIT!!

Weak ownership: independent of each other, with different lifecycles:

uml-class_diagram_05.png

// TODO: EDIT!!

Favorite site

References


  1. UML_class_diagram_code_mapping_NEXTREE.pdf ↩