UML Class Associations - m00racle/Pos-Project GitHub Wiki

INTRO

Why?

When designing the UML class diagram I need to define association between classes. At this moment I have not do so. Thus through this document I need to research on how to make association between classes including aggregation and composition.
This will include on how to make:

  1. Adjustment to exisiting connections between classes
  2. Define the rules of zero to many and et cetera.
  3. Also defining on how to write abstract classes and its inheritance on sub-classes.
Next I need to link the source however some caveat must be mentioned here. If the source is a pdf document which the main information might located deep in the middle of the document I will put screenshot on the related information and put note on which page the information located.

Reseach

source: UML Class Diagrams by Emina Torlak
diagram of a single class
In this slide it suggested that I should omit the trivial method such get and set. However, like I already decided in previous wiki page I will put << get / set >> notations on respected attribute.

Generalization and Association

source: UML Class Diagrams by Emina Torlak
Starts at page 19. Generalization and Association

GENERALIZATION

source: UML Class Diagrams by Emina Torlak page 20
Generalization relationships
As seen in this example the implementation of interface basically a generalization relation but wiht dashed line.
The inheritance between parent and child classes is commonly done. Then the one I need to fix is the implementation connection between interface and the class implementing it.

ASSOCIATION

The biggest issue here is distinguishing betwwen composition and aggregation

⚠️ **GitHub.com Fallback** ⚠️