C# Base

tutorial and example
tutorial and example

C# provides a base keyword to access base class properties in the chilled class. C# Base is almost similar to the super in java. It can only be used inside instance methods and constructors. It can’t be used inside any static method like main.

C# Base class example: accessing parent’s class fields

Output

C# Base Example: calling Parent class methods

Output