Java decorator design pattern
Java decorator design pattern comes under structural design patterns and it provides the facility to add additional responsibilities to an existing object without altering its structure. It uses composition to extend the facility to an existing objects. Main advantage of decorator is to increase the existing functionality of an object without making any changes in … Read more