CSE 1203 03 AdvanceTopicUML
CSE 1203 03 AdvanceTopicUML
Wondershare
Watermark PDFelement
CSE 12031
Chapter 4:
Advanced Topics-3: UML
Remove
Wondershare
Watermark PDFelement
Realization
Remove
Wondershare
Watermark PDFelement
UML: Association
What is Association?
When two classes communicate or passes
information to each other . Draw a straight line
6
2
between them.
Exmaple:
Example of Association
1. Aggregation 3
2. Composition
What is Aggregation?
Aggregation implies a relationship where the child
can exist independently of the parent.
Computer keyboard
UML: Composition
What is Composition? House Room
Composition implies a relationship where the Example: House (parent) and Room (child). Rooms
child cannot exist independent of the parent. don't exist separate to a House.
More Examples
* Person & Leg
* Whatsapp & WhGroup
UML: Realization
What is Realization?
In UML modeling, a realization relationship is a
relationship between two model elements, in
which one model element (the client) realizes
the behavior that the other model element (the
supplier) specifies. Several clients can realize
the behavior of a single supplier.
Shape
5
realization
Circle Rectangle
Example: shape is abstract, all implementations are
to be done in child classes
Remove
Wondershare
Watermark PDFelement
15
THANK YOU