The class diagram is a static model that shows the classes and the relationships among classes that remain constant in the system over time. The class diagram depicts classes, which include both behaviors and states, with the relationships between the classes. The following sections will first present the elements of the class diagram, followed by the way in which a class diagram is drawn.