Class diagram

In the diagram, classes are represented with boxes that contain three compartments:

  • The top compartment contains the name of the class. It is printed in bold and centered, and the first letter is capitalized.
  • The middle compartment contains the attributes of the class. They are left-aligned and the first letter is lowercase.
  • The bottom compartment contains the operations the class can execute. They are also left-aligned and the first letter is lowercase.

class diag k