Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Practice Object Interaction!
You have completed Practice Object Interaction!
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