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 C# Objects!
You have completed C# Objects!
Preview
Let your code speak for itself, but when necessary, use words.
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
Multiple ifs and
multiple return statements.
0:00
We've tried to make this code
as self documenting as possible
0:01
by naming things appropriately but
sometimes it's best to
0:05
put in a few comments that describe
in English, what's happening and why.
0:08
Comments are a two-edged sword, though.
0:13
When they're accurate, they can help
make it clear what's happening.
0:15
On the other hand, if we were to
change something about this code and
0:19
forget to update the comment
to reflect the changes,
0:22
then the comments would no
longer be accurate, and
0:25
that can cause more confusion than
if there were no comments at all.
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