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 Intermediate C#!
You have completed Intermediate C#!
Preview
Property accessors can also be protected.
Correction
In the video, the health value of StrongInvader was not changed to 3 as intended. It is left as 2. Be sure to update this value if you are following along using Workspaces.
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
the health property.
0:00
Let's do that now by adding
the virtual keyword here.
0:01
Now, we can have different
types of invaders
0:05
that have different
levels of initial health.
0:08
Let's create a StrongInvader
class in StrongInvader.cs.
0:10
To save on typing, I'm going to copy and
paste FastInvader and make changes to it.
0:16
We'll replace fast with strong.
0:23
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