Aggregation & Composition

From TRCCompSci - AQA Computer Science
Jump to: navigation, search

Overview

Video from 0:00 until 4:28

https://www.youtube.com/watch?v=lahWUiYY-qc&index=6&list=PLCiOXwirraUAJPwNTW5gxfJK6Ej18fDP9 (0:00 - 4:28)

Composition

It is creating an object containing other objects in a way that these objects will cease to exist if the containing object is destroyed.

Aggregation

It is creating an object containing other objects in a way that they will continue to exist even if the containing object is destroyed.