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
Abstract members of an abstract class don't have implementations. Subclasses can provide them though.
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
Let's take a look at the four invader
subclasses we've created so far.
0:00
Here in fast invader, we've overridden
the step size property, but
0:01
not the health property, or
the decrease health method.
0:05
This is still using the default
implementations provided by
0:08
the invader class.
0:11
Here in strong invader,
we've overridden the health property but
0:13
not the step size or
decrease health method.
0:16
Here in shielded invader, we've only
overridden the decrease health method, and
0:19
here in basic invader,
none of the virtual properties or
0:24
methods are being overridden.
0:27
Basic invader just does what
the invader base class does.
0:29
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