The Decorator Design Pattern is a special type of pattern one of the Structural Patterns, that allows you to adding and removing behaviors to an individual object at the run-time dynamically or statically without changing the existing behavior of other associated objects from same class. In software engineering, the common intent of all GOF structural patterns is to simplify the complex relationship between objects and classes in a flexible in the enterprise application. This Decorator pattern does this without violating the Single Responsibility Principle of SOLID principle of object oriented programming. Decorator Design Pattern According to the Gang of Four:
The post Decorator Design Pattern – Structural Patterns in Java appeared first on Dinesh on Java.