You are on page 1of 2

How to use class diagram

Class diagrams are used to model the static structure of a system. They show the
classes, their attributes, and their relationships to each other. To use a class diagram:

1. Identify the classes you want to model

2. Define the attributes of each class

3. Determine the relationships between classes (e.g. inheritance, association,


aggregation)

4. Represent the classes and relationships in a diagram using symbols and


notations (e.g. UML)

5. Use the diagram to understand the system and communicate its design to
others.

How to use case diagram


Use case diagrams are used to model the functional requirements of a system. They
show the relationships between actors (users or systems) and the use cases (actions
or functions) they perform. To use a use case diagram:

1. Identify the actors involved in the system

2. Determine the use cases for the system

3. Draw a diagram showing the actors and their relationships to the use cases

4. Connect the actors to the use cases with lines to indicate their interaction

5. Add descriptions to each use case to specify the steps and requirements for
each action.
6. Use the diagram to understand the functional requirements of the system and
to communicate them to others.

How to use ER diagram


ER (Entity Relationship) diagrams are used to model the data structure of a system.
They show entities (representing objects or concepts), their attributes, and their
relationships to each other. To use an ER diagram:

1. Identify the entities involved in the system

2. Determine the attributes for each entity

3. Determine the relationships between entities (e.g. one-to-one, one-to-many,


many-to-many)

4. Represent the entities and relationships in a diagram using symbols and


notations (e.g. crow's foot notation)

5. Use the diagram to understand the data structure of the system and to
communicate it to others.

You might also like