Programming in the Large with Design Patterns by Burris Eddie

Programming in the Large with Design Patterns by Burris Eddie

Author:Burris, Eddie [Burris, Eddie]
Language: eng
Format: epub
Publisher: Pretty Print Press
Published: 2012-04-08T00:00:00+00:00


Figure 45 Inheritance doesn’t work well when different combinations of features are valid

The examples above highlight some of the weaknesses associated with common approaches to extending the behavior of a class. The Decorator design pattern provides an alternate approach that addresses many of these weaknesses.

To better understand the concept behind the Decorator design pattern, consider the following fictional account of how an online retailor used the Decorator design pattern to simplify product development.

Once upon a time there was an online retailer planning to offer e-book readers in 3 basic form factors:

Standard E-book



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.