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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!