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 Object-Oriented PHP Basics!
You have completed Object-Oriented PHP Basics!
Preview
Now that we have all the properties defined and methods for getting and setting those properties in a regulated manner, let’s complete the main action to display the recipe.
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
Most likely, you'll be adding features
as you enhance your program,
0:00
and that's great.
0:02
The next feature we should work on is
a method for displaying the recipe.
0:03
We want a single method call that will
pull all the information from the recipe
0:07
and give it to us in
an easy to read format.
0:13
This was the first method
we added to our class.
0:16
We called this method displayRecipe.
0:19
And now we're ready to finish this method.
0:21
This is a great opportunity to talk
about another tenet of object-oriented
0:25
programming, single responsibility.
0:28
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