<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 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>
what is the function of default constructor in c++
what is the function of default constructor in c++
a constructor that can be called without having to provide any arguments , irrespective of whether the constructor is auto - generated or user - defined
a constructor that can be called without having to provide any arguments , irrespective of whether the constructor is auto - generated or user - defined