Unformatted text preview: ï‚§ searchAll (t : string): int ïƒ¨ returns an array that contains the indexes of every book of Type t ï‚§ count (t: string ): int ïƒ¨ return the number of books that have type t ï‚§ split (l1: Library, l2: Library, t: Type ) ïƒ¨ copies all books of type t in l1; the others are copied in l2. Library Book -name: string + Library(size:int) + addBook(Bid:int, Btitle: string, type: string, int p) + addBook(Book b): bool + searchLast(id: int): int + searchIth(t: string): int + searchAll(t : string): int + count(t: string ): int + split(l1: Library, l2:Library, t: Type -id: Int -title: string -type: string -pages:int + constructor+ Setters/getters + display() Books 1 *...
View Full Document
This note was uploaded on 08/18/2011 for the course COMPUTER S CSC 113 taught by Professor Dr.safwanqasem during the Spring '11 term at King Saud University.
- Spring '11
- Java Programming