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
Try your hand at writing properties on your own. Then check your work as we do it together.
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
We need to think about what else
other classes will need to know about
0:00
the invader.
0:02
For one, we'll want to know if it's scored
by making it to the end of the path.
0:03
We can figure out if the invader
has scored by using the path and
0:08
path step fields.
0:11
This is a good case for
a computer property.
0:13
Let's call it, HasScored.
0:16
Actually you know what,
I think with what you've learned so
0:18
far about properties,
you can write the rest of this yourself.
0:22
Before you do, I'll give you a hint,
in order to write this property,
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