Album Cover

Design Patterns Vol. 1 Java

Close Preview
The code for this exercise deals with two XML Builders - a plain vanilla XMLBuilder, and a more sophisticated DOMBuilder — both of which allow clients to build XML.
Pre-Factory Method
There is quite a bit of duplicated code within the methods of these XML Builders.
I get it! You want us to use a Factory Method to remove the duplication in these Builders, right?
You guessed it! On the next page you'll witness this tedious duplication for yourself.
| Tweet...
Page rating: | Rate this Page