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


C# Base Example: calling Parent class methods


Pin It on Pinterest

Share This