Flyweight Pattern

It is one of the structural design patterns. It’s main intent as per GOF is “Use sharing to support large numbers of fine-grained objects efficiently” This pattern should be used when we have high number of objects of almost same nature. When we have high number of objects, memory consumption will be high In this […]

Share this article on

Composite Pattern

Composite Pattern is one of the structural design pattern In this pattern, we will have a tree structure hierarchy of classes and common operation will be performed on each class in the hierarchy. Node in the hierarchy is a class which will have children Node class is also called as “Composite” class Leaf in the […]

Share this article on
< Previous Next >