Class Diagram — UML diagram showing classes, attributes, methods, and relationships.
How to read:
┌─────────────────┐
| Class │
├─────────────────┤
| - id: int │ ← private attribute
| + name: string │ ← public attribute
| # email: string │ ← protected attribute
├─────────────────┤
| + login(): void │ ← public method
| - validate(): bool│ ← private method
└─────────────────┘
Relationships:
Cardinality:
1 — exactly one.0..1 — zero or one.* — many.1..* — one or many.