This article needs additional citations for verification. (February 2009) |
UML diagram types |
---|
Structural UML diagrams |
Behavioral UML diagrams |
In software engineering, a class diagram[1] in the Unified Modeling Language (UML) is a type of static structure diagram that describes the structure of a system by showing the system's classes, their attributes, operations (or methods), and the relationships among objects.
The class diagram is the main building block of object-oriented modeling. It is used for general conceptual modeling of the structure of the application, and for detailed modeling, translating the models into programming code. Class diagrams can also be used for data modeling.[2] The classes in a class diagram represent both the main elements, interactions in the application, and the classes to be programmed.
In the diagram, classes are represented with boxes that contain three compartments:
In the design of a system, a number of classes are identified and grouped together in a class diagram that helps to determine the static relations between them. In detailed modeling, the classes of the conceptual design are often split into subclasses.[3]
In order to further describe the behavior of systems, these class diagrams can be complemented by a state diagram or UML state machine.[4]