1. Home
  2. Docs
  3. Chapter 5. UML & Requirement Diagram
  4. 2. Class Diagram

2. Class Diagram

Download PDF

Cass diagram 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 modelling. It is used for general conceptual modelling of the systematic of the application, and for detailed modelling translating the models into programming code. Thus, class diagram is not only used for visualizing, describing, and documenting different aspects of a system but also for constructing executable code of the software application.

Class diagrams can also be used for data modeling. The classes in a class diagram represent both the main elements, interactions in the application, and the classes to be programmed.

Class Diagram in UML Diagram Hierarchy

Purpose of Class Diagrams

  1. Shows static structure of classifiers in a system
  2. Diagram provides basic notation for other structure diagrams prescribed by UML
  3. Helpful for developers and other team members too
  4. Business Analysts can use class diagrams to model systems from business perspective

A UML class diagram is made up of:

  • A set of classes and
  • A set of relationships between classes

Other Related Class Diagram Articles