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
Properties can be virtual too!
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
Remember, properties are just syntactic
sugar that combines a getter method
0:00
with the setter method into a single
member that looks like a field.
0:00
We can override the implementation
of properties just like methods.
0:04
To demonstrate,
let's create another type of invader.
0:08
Let's create a new file and
name it FastInvader.
0:12
Again, let's copy the namespace and
class name from the invader
0:16
class.
0:20
Let's call this new class FastInvader,
And have it be a subclass of Invader.
0:25
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