Write a portion of a class called Library. To be called Library.cpp and will inc
ID: 644613 • Letter: W
Question
Write a portion of a class called Library. To be called Library.cpp and will include (#include "Library.hpp") Library.hpp which is included below.
Library:
*checkOutBook
-if the specified Book or Patron are not in the Library (an ID doesn't match an object in the Library), print out that message and return to the menu
-if a Book is already checked out, print out that message and return to the menu
-if a Book is on hold by another Patron, print out that message and return to the menu
-otherwise update the Book's checkedOutBy, dateCheckedOut and Location; if the Book was on hold for this Patron, update requestedBy; update the Patron's list; print out that Book title has been checked out to Patron name
Here is the Library.hpp file: