Benefits of Composition
- Inversion of Control: It can benefit from Dependency Injection. For example, in Decorator Pattern (Private) and Proxy Pattern (Private).
- Combinator (Private)-oriented programming: Similar to Composite pattern (Private)
- Readily follows Programming to an interface (Private)
- Easy Multiple Inheritance
Backlinks