Quantcast
Channel: Frank Sun » Design Pattern
Viewing all articles
Browse latest Browse all 13

Decorator Pattern

$
0
0
from: http://www.oodesign.com/decorator-pattern.html Motivation Extending an object�s functionality can be done statically (at compile time) by using inheritance however it might be necessary to extend an object�s functionality dynamically (at runtime) as an object is used. Consider the typical example of a graphical window. To extend the functionality of the graphical window for example by adding a Read More →

Viewing all articles
Browse latest Browse all 13

Trending Articles