Class Diagram Flashcards

(9 cards)

1
Q

What annotation is for private and for public?

A
  1. private -
  2. public +
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to draw generalization?

A

A ——-|> B

This means that B can use parameter from A

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

What shape is used for aggregation?

A

A <>—— B

Car<>—-Wheel (wheel doesn’t always need a car)

Term : Loose Coupling
The diamond goes to the bigger state, so diamond goes to the car

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

What shape is used for composition

A

A <>(Solid)—-B

Folder <solid>----- Files (When folder is deleted, all files gone)

Term : Tight Coupling
Whole project are created, live, die together

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

What is the relation term for Aggregation?

A

“is part of”

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

What is the relation term for Composition?

A

“is entirely made”

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

What is the relation term for Generalization?

A

“is a”

subclass inherits a superclass

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

What are the lines for Association?

A
  1. ———>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does no arrow mean in association ? (—————)

A
  1. Info can flow in both directions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly