Identify the correct statement from following with respect to constructor.
A. If a class does not contain an explicit constructor (user defined constructor) the compiler automatically generate a default constructor implicitly as an inline public member.
B. In the absence of user defined constructor the compiler automatically provides the default constructor. It simply allocates memory for the object.
C. Parameterized constructor is achieved by passing parameters to the function.
D. All the above
Answer:D
Identify the correct statement from following with respect to constructor.
A. If a class does not contain an explicit constructor (user defined constructor) the compiler automatically generate a default constructor implicitly as an inline public member. B. In the absence of user defined constructor the compiler automatically provides the default constructor. It simply allocates memory for the object. C. Parameterized constructor is achieved by passing parameters to the function. D. All the above