Decorator Design Pattern
Decorator pattern is a structural design pattern that attaches additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality. So what exactly is that supposed to mean ?? Let us assume that our client is a travel company specializing in trips from the United States to Dubai. In addition … Read more