Lecture 3-Class diagram notation Flashcards
1
Q
What are the 3 dependencies types?
A
- having attribute of supplier type
- sending attribute to supplier
- receiving a parameter of the supplier type
*supplier=superclass or interface
2
Q
Why composition over aggregation(3)?
A
Composition is the ‘strong’ kind of whole-part aggregation :
-It implies that an instance of the part belongs to only one composite instance at a time
-The part must always belong to a composite
-The composite is responsible for the creation and deletion of its parts.
3
Q
What is the order of diagrams?
A
- Domain diagram : indicates which object should be in a sequence diagram
2.Sequence diagram: indicates the objects and their messages
3.Static class diagrams