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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the order of diagrams?

A
  1. Domain diagram : indicates which object should be in a sequence diagram
    2.Sequence diagram: indicates the objects and their messages
    3.Static class diagrams
How well did you know this?
1
Not at all
2
3
4
5
Perfectly