Composition Design Pattern

Definition

The intent of this pattern is to compose objects into tree structures to represent part-whole hierarchies.Composite lets clients treat individual objects and compositions of objects uniformly.

Composition design pattern’s uml diagram

composite

our hierarchies

Capture_Composition_samples

implementation to composition design pattern

Class Diagram

Capture_Composition_Class_Diagram

See you next post

Leave a Reply

Your email address will not be published. Required fields are marked *