3.4.1.10 Composition. Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Define composition.

A

Design technique to implement a has-a relationship. Composition is achieved by using an instance variable that refers to other objects.

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

Define Composition Aggregation.

A

Creating an object that contains other objects and will cease to exist if the containing object is destroyed.

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

Define Association Aggregation.

A

Creating an object that contains other objects, which can continue to exist even if the containing object is destroyed.

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

Specification knowledge.

A

Know how to build a composition abstraction by combining procedures to form compound procedures.

Know how to build data abstractions by combining data objects to form compound data, for example tree data structure.

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