CISC 323 Intro to Software Engineering
CISC 323 Intro to Software Engineering
CISC 323 Intro to Software Engineering
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
BookListFac<strong>to</strong>ry<br />
BookListFac<strong>to</strong>ry.java<br />
public interface BookListFac<strong>to</strong>ry {<br />
public BookList createBookList ();<br />
}<br />
class Vec<strong>to</strong>rBookListFac<strong>to</strong>ry<br />
implements BookListFac<strong>to</strong>ry {<br />
public BookList createBookList () {<br />
return new Vec<strong>to</strong>rBookList ();<br />
}<br />
}<br />
Vec<strong>to</strong>rBookListFac<strong>to</strong>ry.java<br />
class Client {<br />
…<br />
BookListFac<strong>to</strong>ry blf;<br />
…<br />
BookList b = blf.createBookList();<br />
}<br />
Client.java