Domain modeling Flashcards

Get to know class diagrams and UML

1
Q

What is a class diagram?

A

A diagram that shows classes (make up a domain or a part of the system) and relationships among them

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

What kind of relationships may exist between classes?

A
  • Association
  • Aggregation
  • Composition
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a degree of association?

A

Number of roles in that association

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

What is a binary (ternary) association?

A

An association that has two (three) roles for the participating objects to play

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

How many class may be involved in a ternary association?

A

At least one

E.g: A person is recommending a person to another person

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

How to interpret multiplicities of ternary association?

A

Take each pair of the classes and associates it with the third class

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

What is an association class?

A

A class that created by an association that has data or behaviours

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

How to represent an object in UML?

A

objectName : className

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

What is a link?

A

An instance of an association

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

What is an aggregation?

A

A special form of association, also known as whole-part and part-of relationship (composite and component object)

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

The condition that aggregation must satisfy

A

It must not be circular

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

Factors that help to decide whether it’s an aggregation or not?

A
  • Existence dependency
  • Non-shareability
  • Exclusive access control
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a composition?

A

A stronger form of aggregation that must have existence dependency and non-shareability

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