UML Class Diagram Constructor
UML Class Diagrams is a type of static structure diagram that is used both for general conceptual modeling of the systematics of the application, and for detailed modeling translating the models into programming code. It describes the structure of a system by showing the:- classes of a system,
- attributes,
- operations,
- relationships between them.
The Rapid UML Solution for ConceptDraw DIAGRAM includes the UML Class Diagram library that helps you to design the UML Class Diagram quick and easy. You can simply and quickly drop the ready-to-use objects from the library into your document to create the UML Class Diagram.
Pic 1. UML Class Diagram Software
On the UML Class Diagram, Classes are represented as boxes that consist of name, attributes of the class, operations or methods, and responsibilities.
Pic 2. UML Class Diagram Components
ConceptDraw DIAGRAM allows you to set the following visibility markers that assign where and how will be available the class components: of a class member: Public (+), Private (-), Protected (#), Derived (/), Static (_), Package (~). The visibility marker must be placed before the name of class member.
Pic 3. UML Class Diagram Components
ConceptDraw DIAGRAM allows you to depict the associations (static relationships) between objects and classes on the Class Diagrams. The association that connects two classes is represented as:
- Aggregation (“has a”) association – as line with empty diamond.
- Composition (“owns a”) association – as line with filled diamond.
- Generalization or Inheritance (“is a”) association – as line with empty triangle.
- Realization association – as unbroken line with empty triangle.
- Dependency association - as unbroken line with an open arrowhead.
- Synchronous message association – as line with filled triangle.
The components with Private visibility (-) are not visible from outside. The Protected visibility (#) allows the components be accessible in any child class. The components with Public visibility (+) are visible for all other classes. The Derived (/) class inherits the properties of the base class. The Static (_) visibility is used at the encapsulation. The Package (~) visibility shows that the components are accessible to any class of this package.
Pic 4. UML Class Diagram Associations
ConceptDraw DIAGRAM allows to indicate the multiplicity of associations, i.e. the quantity of instances of one class that are linked to one instance of the other class. There are four notations:
- 0..1 – no or one instance;
- 1 – one instance;
- 0..* – zero or more instances;
- 1..* – one or more instances.
Pic 5. UML Class Diagram Multiplicity Associations
Pic 6. UML Class Diagram Constructor.
This example represents the aggregation associations and uses the multiplicity of associations.
The Rapid UML Solution of ConceptDraw DIAGRAM also provides templates and samples that help you to create the UML Class Diagram in one moment.
Pic 7. Rapid UML Solution in ConceptDraw STORE
The document of ConceptDraw DIAGRAM with UML Class Diagram is a vector graphic document and can be reviewed, modified or convert to a variety of formats: image, HTML, PDF file, MS PowerPoint Presentation, Adobe Flash or MS Visio.
Pic 8. Export options from ConceptDraw DIAGRAM
ConceptDraw DIAGRAM extended with the Rapid UML Solution is perfect for drawing professional UML Class Diagrams.