23.07.2012 Views

Design Patterns Explained

Design Patterns Explained

Design Patterns Explained

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

58 Part II • The Limitations of Traditional Object-Oriented <strong>Design</strong><br />

Completing the<br />

solution<br />

Figure 4-1 The design for slots.<br />

I complete this solution by extending it for each of the feature<br />

types, as shown in Figure 4-2.<br />

Figure 4-2 Original solution to the problem of extracting information.<br />

Of course, Figure 4-2 is pretty high-level. Each of the vixxx classes<br />

would communicate with the corresponding V1 library. Each of the<br />

V2xxx classes would communicate with the corresponding object in<br />

the V2 model.<br />

This is easier to visualize by looking at each class individually.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!