09.01.2013 Views

CISC 323 Intro to Software Engineering

CISC 323 Intro to Software Engineering

CISC 323 Intro to Software Engineering

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.

¤<br />

¢ £<br />

¤ ¥<br />

¦ §<br />

¨¥<br />

©�<br />

Extending <strong>to</strong> Multiple<br />

Fac<strong>to</strong>ries<br />

uses<br />

BookListFac<strong>to</strong>ry Client<br />

Vec<strong>to</strong>rBookListFac<strong>to</strong>ry SortingVec<strong>to</strong>rBookListFac<strong>to</strong>ry <br />

BookList<br />

creates creates<br />

The client sees an object of type<br />

BookListFac<strong>to</strong>ry, so does not need <strong>to</strong> know<br />

whether it is using a Vec<strong>to</strong>rBookListFac<strong>to</strong>ry<br />

or a SortingVec<strong>to</strong>rBookListFac<strong>to</strong>ry<br />

¤�<br />

§<br />

©��<br />

�<br />

�<br />

��<br />

��<br />

�<br />

�<br />

��<br />

��<br />

�<br />

�<br />

� � ����<br />

�£<br />

� § �<br />

¤<br />

¤ ¥<br />

§£ �<br />

�<br />

���<br />

��<br />

©§<br />

� �<br />

��<br />

uses<br />

Vec<strong>to</strong>rBookList SortingVec<strong>to</strong>rBookList<br />

¡

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

Saved successfully!

Ooh no, something went wrong!