Base Keyword
In this lesson, you'll get to know the uses of the 'base' keyword in C#.
We'll cover the following...
What Is the base
Keyword?
As you already know, the this
keyword in C# is used to refer to the instance of the current class.
In a similar fashion, the base
keyword in C# is used to refer to the base class members from inside the immediate derived class. The use of base
comes into play when we implement inheritance.
Use Cases of the base
Keyword
The base keyword is used in three major contexts:
Accessing Base Class Fields
The base
keyword can be used to access any ...