Tag: Decorator Design Pattern

Decorator Design Pattern

Introduction: Sometimes you want to add more responsibility to an object dynamically. Decorate Design Pattern provide us a flexible alternative to creating subclasses to extend this functionality. So you will not have to extend functionality by creating a child (Sub class) class. Example: class Program { static void Main() { Book b = new Book(); Read More …