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
Don't forget the override keyword or you'll see this compiler warning.
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 moment to see what happens
when we forget the override keyword.
0:00
I created a sniper tower and
0:04
I didn't add override when I
created the accuracy property.
0:06
I'll compile and see what happens.
0:09
We don't get a compiler error,
instead we get a compiler warning.
0:14
It says
TreehouseDefense.SniperTower.Accuracy
0:19
hides inherited member
TreehouseDefense.Tower.Accuracy.
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