What is Default Constructor ?


A constructor that takes no parameters is called a default constructor. Default constructors are invoked whenever an object is instantiated by using the new operator.
Example

public class Train
{
    public bool isInitialized;
    public Train()
    {
        isInitialized = true;
    }
}

class TestTrain
{
    static void Main()
    {
        Train t = new Train();
        Console.WriteLine(t.isInitialized);
    }
}