3.4.1.10 Composition. Flashcards
Define composition.
Design technique to implement a has-a relationship. Composition is achieved by using an instance variable that refers to other objects.
Define Composition Aggregation.
Creating an object that contains other objects and will cease to exist if the containing object is destroyed.
Define Association Aggregation.
Creating an object that contains other objects, which can continue to exist even if the containing object is destroyed.
Specification knowledge.
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.