C# – How to Call the base constructor ?


This content was proof-read by Grammarly. You can Try Grammary for FREE

In C#, You can call the base constructor using the base keyword as shown below.

How to Call the base constructor in C# ?

public class AbundantCodeClassException : Exception
{
    public AbundantCodeClassException(string message) : base(message)
    {
        // Your Logic here
    }
}
%d bloggers like this: