Question: 6.4. Exercise 3 Define a new method called get Info to the class Librarsimhat takes a book's order number, then searches the book (using findBook),
6.4. Exercise 3 Define a new method called get Info to the class Librarsimhat takes a book's order number, then searches the book (using findBook), if found it returns the following: If the book is a reference book, returns the string: o "Collection: " + refBook.getCollection() If the book is a circulating book, returns the string: o "borrower name:" + cirBook.getBorrowerName() + due date: " + cirBook.getDueDate() 11 Test the newly added method using these two books' order numbers: "64.2 R25ex and QA43.W34, then print the returned values that should look like: Collection: Iowa Room borrower name: Donald Duck, due date: March 1, 2012
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
