Challenge 1: Override a Method in the Derived Class
Explore method overriding in C# as you modify a derived class method to call and extend a base class method. Understand how to use polymorphism effectively by applying base.Method() to return combined class names. This lesson deepens your practical skills with inheritance and method overriding through a hands-on coding challenge.
We'll cover the following...
We'll cover the following...
Problem Statement
When a method in a derived class overrides a virtual method in a base class, it is still possible to call the overridden method using the base keyword.
If you write
base.Method(), it will call the method that was ...