Quick and Short: Decorator Pattern

By , March 17, 2010

This article is written under ‘Quick and Short’ edition. In this article I will explain about Decorator Design Patterns.

Read more Quick and Short articles.

Read more about design patterns [Factory], [Abstract Factory], [Singleton], [Builder], [Prototype], [Adapter], [Bridge], [Composite], [Decorator], [Facade], [Proxy], [Flyweight], [Chain of Responsibility], [Command], [Iterator], [Mediator], [Memento], [Observer], [State], [Strategy], [Visitor], [Template Method], [Interpreter]

Decorator Design Patterns

Decorator pattern allows creating inherited classes which are sum of all part of the parent. For instance figure ‘Decorator’ has class1 which has method called as ‘SomeFunction’ now we inherit and add one more method called as ‘SomeMoreFunction’. So Class2 is the addition of ‘SomeFunction’ plus ‘SomeMoreFunction’.

Figure: – Decorator

——————————————————————————————————————————————————————

Readers are requested to add comment, and add more information in case they want.

Read more Quick and Short articles.

Leave a Reply

*