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 classes are classes that can't be instantiated - the can only be subclassed.
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 also have fast invader,
strong invader, and shielded invader,
0:00
these last three types of invaders
are subclasses of our basic invader.
0:02
This is sort of odd,
it makes more sense for
0:07
our basic invader to just
be another type of invader.
0:10
We can define a base class that defines
what it means to be an invader, but
0:13
isn't actually a type of
invader that can be created.
0:18
This is called an abstract base class.
0:21
We can create an abstract base class
by adding the key word abstract here,
0:24
in front of the word, class.
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