The class diagram is the main static analysis diagram for a system. In it, the class structure of the system is specified, with relationships between classes and inheritance structures.
Drawing UML class diagrams
You can draw class diagrams using symbols from the toolbox or the Draw menu. Listed below are some general drawing features of a UML Class diagram that you should be aware of.
Specifying language properties for a class
You must specify a programming language for a class diagram. All classes drawn on the diagram automatically get assigned to this language. You can change the language at any point.
You can hide or reveal relationship lines of all types on any diagram as described below:
1 Select View, Hide/Reveal relationship line(s), or right‑click the diagram workspace and select Hide/Reveal relationship line(s). This opens the Hide/Reveal relationship line dialog. The dialog presents all relationship line types on the diagram, with a button next to each that by default reads “Leave”.
2 To hide a particular relationship line type on the diagram, click the button next to that line type so that it reads “Hide”.
3 Click OK. All lines of that type will be hidden on the diagram.
To hide a particular line on a diagram, select the line, and then click View, Hide selected <xxx> relationship line(s), or right-click the line and click Hide selected <xxx > relationship line(s).
Check your diagram against rules of UML by clicking Reports > Unified Rules Check. A report is generated listing errors and warnings. The diagram itself is also graphically with error numbers where the errors occur. To clear errors, click Clear Errors on the Reports menu.