C++ Programming - Constructors and Destructors - Discussion

Discussion Forum : Constructors and Destructors - General Questions (Q.No. 26)
26.
Which of the following statement is correct?
A constructor has the same name as the class in which it is present.
A constructor has a different name than the class in which it is present.
A constructor always returns an integer.
A constructor cannot be overloaded.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
3 comments Page 1 of 1.

Ra b said:   1 decade ago
A constructor has the same name as the class in which it is present.

Sravan said:   1 decade ago
What does constructor return?

Srishti said:   9 years ago
The constructor is a special function which never returns anything either void.

Post your comments here:

Your comments will be displayed after verification.