Design Patterns
Iterator Pattern
According to GoF, Iterator Pattern is used “to access the elements of an aggregate object sequentially without exposing its underlying implementation”. The Iterator pattern is…
Interpreter Pattern
An Interpreter Pattern says that “to define a representation of grammar of a given language, along with an interpreter that uses this representation to interpret…
Command Pattern
A Command Pattern says that “encapsulate a request under an object as a command and pass it to invoker object. Invoker object looks for the…
Chain Of Responsibility
In chain of responsibility, sender sends a request to a chain of objects. The request can be handled by any object in the chain. A…
Behavioral Pattern
Behavioral design patterns are concerned with the interaction and responsibility of objects. In these design patterns,the interaction between the objects should be in such a…
Proxy Pattern
Simply, proxy means an object representing another object. According to GoF, a Proxy Pattern “provides the control for accessing the original object”. So, we can…
Flyweight Pattern
A Flyweight Pattern says that just “to reuse already existing similar kind of objects by storing them and create new object when no matching object…
Facade Pattern
A Facade Pattern says that just “just provide a unified and simplified interface to a set of interfaces in a subsystem, therefore it hides the…
Decorator Pattern
A Decorator Pattern says that just “attach a flexible additional responsibilities to an object dynamically”. In other words, The Decorator Pattern uses composition instead of…
Composite Pattern
A Composite Pattern says that just “allow clients to operate in generic manner on objects that may or may not represent a hierarchy of objects”….