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.

This code simply shows how a book list is instantiated<br />

public class SampleClient {<br />

public static void main (String [] args) {<br />

Book b = new Book (…);<br />

BookList bl = new BookListClassAdapter ();<br />

bl.addBook (b);<br />

System.out.println (“Book list has ” +<br />

bl.getNumBooks() + “ books”);<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 />

§£ �<br />

�<br />

���<br />

��<br />

©§<br />

�<br />

�<br />

SampleClient.java<br />

¡

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

Saved successfully!

Ooh no, something went wrong!