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
Let's see another example of overriding a virtual method.
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
So let's work through another example.
0:00
This time,
0:00
we'll make a couple classes using
the animal example we discussed earlier.
0:00
We'll do this in the C# repel.
0:05
To start the repel,
just type csharp in the console.
0:07
Let's have a Bird class that
contains a Move method.
0:10
This method will simply print Birds fly.
0:13
We'll make it virtual so
that we can overwrite it in subclasses.
0:17
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