Class Diagrams help you model the structure of an object-oriented system by showing classes, their attributes, methods, and relationships.
Before you start
Make sure you have permission to edit the board and are in design editing mode.
Available Class Diagram elements
Open the Class Diagram section of the Diagram Library to find Class Tables and relationship elements.
- Class Table. A Class Table represents a class and organizes its name, attributes, and methods into separate sections. Class Tables work similarly to tables, making it easy to add, edit, and organize information.
- Relationship types. Visily provides common relationships used in object-oriented modeling:
- Association: Shows a general relationship or connection between two classes.
- Inheritance (Generalization): Shows that one class inherits properties and behaviors from another class.
- Realization: Shows that a class implements an interface or specification.
- Aggregation: Represents a whole-part relationship where the parts can exist independently.
- Composition: Represents a stronger whole-part relationship where the parts depend on the whole.
- Dependency: Shows that one class uses or depends on another class.
Add a Class Diagram element
Open the Class Diagram section of the Diagram Library, select a Class Table or relationship element, then click the canvas to add it. Move or resize the element as needed.
Customize a Class Table
A
Class Table works similarly to a table. You can edit its class name, attributes, methods, structure, content, and appearance. For more information, see
How to use Table elements.
Customize a Class Diagram relationship
A Class Diagram relationship works similarly to a connector. You can change its type, color, line style, start and end points, and add text labels. For more information, see
Connect diagram elements.
Tips for creating a clear Class Diagram
- Use clear and consistent names for classes, attributes, and methods.
- Keep related classes close together to reduce crossing relationships.
- Choose the relationship type that best represents how the classes interact.
- Use consistent formatting across Class Tables.
- Turn on Grid Mode to help align and snap elements into place.
Need more help?
If this does not solve your issue, contact support and include a screenshot if possible.