what is default constructor?

1 Like

A default constructor is a constructor in both C++ and C# that has no parameters or where it has parameters they are all defaulted.

If no constructor is supplied then the compiler will supply a default constructor. If however, any kind of constructor is declared by the programmer than a default is not supplied