UML = blueprint for software. Two types:

Class Diagram

  1. Identify domain classes (User, Expense, Category)
  2. Add attributes/methods
  3. Draw relationships with multiplicity (1..*, 0..1)

image.png

<<Interface>> | Abstract class | Object


πŸ”— Types of Relationships in UML Class Diagrams

Relationship Lines Meaning
Association β€”β€” connection between two classes (1: M), (M: N) E.g., User has Profile.
Inheritance β€” >
Realization - - - >
Dependency - - - > uses-a relation. Provided by method params
Aggregation Team β—‡--- Player has-a relationship.
Composition House β—†--- Room Stronger form of aggregation. : Rooms don’t exist alone.

Assocation types