Delegation

Delegation 1: Motivation and Example

At first, a simple example serves to illustrate pitfalls of specialization. Subsequently, it is shown how these problems can be overcome by using delegation instead.

 
 

Delegation 2: Delegation between Classes

This screencast demonstrates the use of delegation between classes (which are objects at the same time) to model (and implement) product variants.