Class Diagram UML
Class Diagram UML
2. Simple Association.
• A structural link between
two peer classes.
• There is an association
between Class1 and Class2
• A solid line connecting two
classes
3. Aggregation.
• Class2 is part of Class1.
• Many instances (denoted by
the *) of Class2 can be
associated with Class1.
• A solid line with an unfilled
diamond at the association
end connected to the class
of composite
• Instead of modeling every entity and its relationships on a single class diagram, it is
better to use multiple class diagrams.
• Dividing a system into multiple class diagrams makes the system easier to
understand, especially if each diagram is a graphical representation of a specific
part of the system.
• So, while user stories may not explicitly list the classes in your system, they can
guide you in identifying the necessary components and behaviors that need to be
modeled in your system.