Class Diagrams ll Flashcards

1
Q

What is aggregation?

A

Type of association used to express that a class is part of another class

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

Transitive aggregation

A

An aggregation relationship that can be chained through multiple levels

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

Transitive aggregation example

A

If B is part of A and C is part of B, C is also part of A

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

Asymmetric aggregation

A

An aggregation relationship that is not bidirectional

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

Asymmetric aggregation example

A

It is not possible for A to be part of B and B to be part of A simultaneously

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

Shared aggregation

A

A relationship between classes where one class aggregates multiple instances of another class which can be shared among multiple classes

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

Shared aggregation syntax

A

Hollow diamond at the aggregating end

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

Composition

A

A relationship between two classes where one class is composed of one or more instances of another class

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

Composition syntax

A

Solid diamond at the aggregating end

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

Generalisation

A

A hierarchical relationship where a sub/child class inherits attributes and behaviours from a super/parent class

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

Abstract class

A

A class that cannot be instantiated on its own and is designed to serve as a blueprint for other classes

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

Multiple inheritance

A

Allows a subclass to inherit characteristics and behaviours from more than one superclass

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

Class

A

Description of the structure and behaviour of a set of objects

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