C++ Programming - Constructors and Destructors - Discussion

Discussion Forum : Constructors and Destructors - General Questions (Q.No. 24)
24.
How many default constructors per class are possible?
Only one
Two
Three
Unlimited
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
5 comments Page 1 of 1.

SOMYA AGRAWAL said:   1 decade ago
Only one default constructor is needed for initialize the object.

Nazia said:   1 decade ago
What about default copy constructor? (It is also a constructor).

Rahat said:   1 decade ago
A default constructor is a constructor that either has no parameters, or if it has parameters, all the parameters have default values.

Ashish said:   1 decade ago
One Static constructor also defined with no argument in the class.

Geetija said:   1 decade ago
Default constructor is constructor with no argument. Only one constructor is required to initialize the object.

Post your comments here:

Your comments will be displayed after verification.