Bummer! You must be logged in to access this page.
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
Just like fields, properties can also have values set upon object creation.
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
As towers shoot and hit them,
they need to be disabled somehow.
0:00
Often times, opponents in games
have a certain amount of health
0:00
that decreases as
the opponent sustains damage.
0:03
We can implement this same
idea in the invader class.
0:06
You know everything you need to know
in order to add this feature to
0:10
the invader class.
0:12
Think about what we'll need to add to
this class in order to implement this.
0:14
You'll probably need some
sort of variable to store
0:18
how much health the invader has remaining.
0:21
Invaders also need to start out
with a certain level of health.
0:24
We'll need to provide some way for
other classes, such as the tower class
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