Aggregation & Composition

From TRCCompSci - AQA Computer Science
Revision as of 12:12, 11 June 2018 by Admin (talk | contribs) (Overview)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.