Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Explanation: Adding Methods to the Library Class 1:20
- Solution: Adding Methods to the Library Class
- Demo: Add Patrons and Books to the Library Class 1:58
- Explanation: Checking Out and Returning Books 1:24
- Recap: Updating our Plan of Attack
- Solution: Adding New Properties to the Book Class
- Starting with Some Methods 4 questions

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
For the next step in our library application, let's start discussing how patrons can check out and return books.
Instructions for Workspace
Your instructions are as follows:
1) Inside the Book class, add three properties to the constructor method: out
, dueDate
, and patron
.
- The
out
property should be initialized tofalse
- The
dueDate
property should be initialized tonull
- The
patron
property should be initialized tonull
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up