Replace Implementation Inheritance With Composition

a class is being subclassed for implementation purposes
replace the inheritance relationship with composition, thereby preserving encapsulation

Context:
See also :Replace Specializing Composition With Inheritance,Replace Delegation With Inheritance[Fowler]

Refactoring Thumbnails, Copyright © 2004 - 2005, Sven Gorts, All Rights Reserved.

[ Overview Page ] [ Thumbnail Catalog ]