When working with inheritance, it's common to want to change how one type of object functions (called overriding). This video will show you how to do this.
Let's move over to Main, and test the methods we just wrote.
Review Questions
The following are examples of questions similar to what you can expect to see on the next exam.
- What does making a method virtual do? Allows an inheriting class to override it.
- When should you make methods virtual? Always, unless you have a specific reason not to.