Tutorials »

Today we will explore the Decorator pattern, an alternative to subclassing which favors object composition over class inheritance. A common issue of subclassing is its rigidity: when different subclasses provide different features, it's hard to combine them into a unique object.

Posted by girish.r 224 days ago (http://abcphp.com)
Discuss  | Bury | Tweet This | Tagged: oop patterns decorator
Add To 

Who Voted for this Story

Comments

No one has commented on this article yet.

Log in to comment or register here.