<P> In computer programming languages, the term default constructor can refer to a constructor that is automatically generated by the compiler in the absence of any programmer - defined constructors (e.g. in Java), and is usually a nullary constructor . In other languages (e.g. in C++) it is a constructor that can be called without having to provide any arguments, irrespective of whether the constructor is auto - generated or user - defined . Note that a constructor with formal parameters can still be called without arguments if default arguments were provided in the constructor's definition . </P> <P> In C++, the standard describes the default constructor for a class as a constructor that can be called with no arguments (this includes a constructor whose parameters all have default arguments). For example: </P>

What is default constructor in c plus plus