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
    }
}
Newsletter Signup

Subscribe to our weekly newsletter below and never miss the latest product or an exclusive offer.

Newsletter Signup

Subscribe to our weekly newsletter below and never miss the latest product or an exclusive offer.

%d bloggers like this: