teacher
Sign in

UML Class Diagrams

Read and draw class diagrams, tell the six relationship arrows apart, and map a diagram straight to Java and C++ code.

25 min3 interactive

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.

MarkerMeaning
+public
-private
#protected
$ after a memberstatic
* after a methodabstract
<<interface>>, <<abstract>>stereotype: a label above the class name
1 of 5