Composite Design Pattern

In this article,we will discuss

  • What is Composite Design Pattern
  • Implementation Guidelines of Composite design pattern
  • And will take a look at simple example to implement this pattern

Composite Design Pattern : As per the GOF definition, the Composite Pattern, “Compose objects into tree structures to represent part-whole hierarchies. Composite let clients treat individual objects and compositions of objects uniformly.

This means, the composite pattern describes a group of objects that is treated the same way as a single instance of the same type of object. Continue reading “Composite Design Pattern”

Create a free website or blog at WordPress.com.

Up ↑

Design a site like this with WordPress.com
Get started