UML Class Diagrams
Read and draw class diagrams, tell the six relationship arrows apart, and map a diagram straight to Java and C++ code.
What it is for
UML (Unified Modeling Language) is a standard way to draw software. A class diagram is the part you need for LLD: boxes for classes, lines for how they relate. Its purpose is to let two people agree on a design in a minute, before writing code.
Each class is a box with three parts: name, fields, methods.
| Marker | Meaning |
|---|---|
+ | public |
- | private |
# | protected |
$ after a member | static |
* after a method | abstract |
<<interface>>, <<abstract>> | stereotype: a label above the class name |
1 of 5