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!
Preview
Join me for the final testing and demonstration video to see how our new ability to charge fines to patrons is working.
This video doesn't have any notes.
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
sure it works as expected and
then we'll be done.
0:00
Testing this method is a little tricky
because we only have one patron object
0:02
that we're working with.
0:06
And, when we call the checkout method on
this patron their book won't be due for
0:07
two weeks.
0:12
If we run the charge fine method right
now, it won't charge a fine to any patron
0:13
because it won't find
any with overdue books.
0:18
That means we have to fudge it a little.
0:21
To do that, we're going to head back
to our book class for a brief moment,
0:23
to look at the outsetter method where we
set a book's due date when we check out.
0:26
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