The UML class diagram shows the static structural behavior of the system, in which attributes and operations are designed for the complete system. The classes can be related to each other in number of ways, like they can be associated, dependent, specialized or packaged.