Class diagrams show different objects within a system and how these objects associate with each other. In part, the diagram does this by showing the attributes and operations of each class within the system, and defining the constraints placed on these classes. The basic notation to show a class is a rectangular box containing the classname. However, you can add more information to the box, as you will see.
Note that the UML notation for class diagrams is extensive, so this appendix only shows you the most commonly used elements of the notation. Specifically, you will learn about five main types of notation:
If you want to show that an instance of a class has ...