CS2002 - Week 4 - Class Diagrams II Flashcards

(13 cards)

1
Q

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