Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
Instruction
Solution: checkOut() and returnBook() Methods
Solution for the checkOut() Method
The checkOut()
method in the Patron class is how weβre modeling the process of a real-life Library patron checking out a book.
It sets the currentBook
property on the Patron object to the Book object theyβre checking out. It also sets the patron
property on the Book object to the Patron thatβs borrowing the book.
The out
property on the ...